

#if defined(__BORLANDC__)
    #pragma option push -w-8060
    #pragma option push -w-8004
#endif
#include "soapH.h"
#ifdef __cplusplus
extern "C" {
#endif

SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.8.84 2019-08-13 17:50:16 GMT")

SOAP_FMAC5 int SOAP_FMAC6 soap_send_SOAP_ENV__Fault(struct soap* soap, const char* soap_endpoint, const char* soap_action, char* faultcode, char* faultstring, char* faultactor, struct SOAP_ENV__Detail* detail, struct SOAP_ENV__Code* SOAP_ENV__Code, struct SOAP_ENV__Reason* SOAP_ENV__Reason, char* SOAP_ENV__Node, char* SOAP_ENV__Role, struct SOAP_ENV__Detail* SOAP_ENV__Detail)
{
    struct SOAP_ENV__Fault soap_tmp_SOAP_ENV__Fault;
    if (soap_action == NULL)
        soap_action = "http://www.w3.org/2005/08/addressing/soap/fault";
    soap_tmp_SOAP_ENV__Fault.faultcode = faultcode;
    soap_tmp_SOAP_ENV__Fault.faultstring = faultstring;
    soap_tmp_SOAP_ENV__Fault.faultactor = faultactor;
    soap_tmp_SOAP_ENV__Fault.detail = detail;
    soap_tmp_SOAP_ENV__Fault.SOAP_ENV__Code = SOAP_ENV__Code;
    soap_tmp_SOAP_ENV__Fault.SOAP_ENV__Reason = SOAP_ENV__Reason;
    soap_tmp_SOAP_ENV__Fault.SOAP_ENV__Node = SOAP_ENV__Node;
    soap_tmp_SOAP_ENV__Fault.SOAP_ENV__Role = SOAP_ENV__Role;
    soap_tmp_SOAP_ENV__Fault.SOAP_ENV__Detail = SOAP_ENV__Detail;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize_SOAP_ENV__Fault(soap, &soap_tmp_SOAP_ENV__Fault);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put_SOAP_ENV__Fault(soap, &soap_tmp_SOAP_ENV__Fault, "SOAP-ENV:Fault", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put_SOAP_ENV__Fault(soap, &soap_tmp_SOAP_ENV__Fault, "SOAP-ENV:Fault", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv_SOAP_ENV__Fault(struct soap* soap, struct SOAP_ENV__Fault* _param_1)
{
    soap_default_SOAP_ENV__Fault(soap, _param_1);
    soap_begin(soap);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get_SOAP_ENV__Fault(soap, _param_1, "SOAP-ENV:Fault", NULL);
    if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
        soap->error = SOAP_OK;
    if (soap->error
            || soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetServices(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetServices* tds__GetServices, struct _tds__GetServicesResponse* tds__GetServicesResponse)
{
    if (soap_send___tds__GetServices(soap, soap_endpoint, soap_action, tds__GetServices) || soap_recv___tds__GetServices(soap, tds__GetServicesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetServices(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetServices* tds__GetServices)
{
    struct __tds__GetServices soap_tmp___tds__GetServices;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServices";
    soap_tmp___tds__GetServices.tds__GetServices = tds__GetServices;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetServices(soap, &soap_tmp___tds__GetServices);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetServices(soap, &soap_tmp___tds__GetServices, "-tds:GetServices", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetServices(soap, &soap_tmp___tds__GetServices, "-tds:GetServices", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetServices(struct soap* soap, struct _tds__GetServicesResponse* tds__GetServicesResponse)
{
    if (!tds__GetServicesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetServicesResponse(soap, tds__GetServicesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetServicesResponse(soap, tds__GetServicesResponse, "tds:GetServicesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetServiceCapabilities* tds__GetServiceCapabilities, struct _tds__GetServiceCapabilitiesResponse* tds__GetServiceCapabilitiesResponse)
{
    if (soap_send___tds__GetServiceCapabilities(soap, soap_endpoint, soap_action, tds__GetServiceCapabilities) || soap_recv___tds__GetServiceCapabilities(soap, tds__GetServiceCapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetServiceCapabilities* tds__GetServiceCapabilities)
{
    struct __tds__GetServiceCapabilities soap_tmp___tds__GetServiceCapabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServiceCapabilities";
    soap_tmp___tds__GetServiceCapabilities.tds__GetServiceCapabilities = tds__GetServiceCapabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities, "-tds:GetServiceCapabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities, "-tds:GetServiceCapabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetServiceCapabilities(struct soap* soap, struct _tds__GetServiceCapabilitiesResponse* tds__GetServiceCapabilitiesResponse)
{
    if (!tds__GetServiceCapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetServiceCapabilitiesResponse(soap, tds__GetServiceCapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetServiceCapabilitiesResponse(soap, tds__GetServiceCapabilitiesResponse, "tds:GetServiceCapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDeviceInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDeviceInformation* tds__GetDeviceInformation, struct _tds__GetDeviceInformationResponse* tds__GetDeviceInformationResponse)
{
    if (soap_send___tds__GetDeviceInformation(soap, soap_endpoint, soap_action, tds__GetDeviceInformation) || soap_recv___tds__GetDeviceInformation(soap, tds__GetDeviceInformationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDeviceInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDeviceInformation* tds__GetDeviceInformation)
{
    struct __tds__GetDeviceInformation soap_tmp___tds__GetDeviceInformation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation";
    soap_tmp___tds__GetDeviceInformation.tds__GetDeviceInformation = tds__GetDeviceInformation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation, "-tds:GetDeviceInformation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation, "-tds:GetDeviceInformation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDeviceInformation(struct soap* soap, struct _tds__GetDeviceInformationResponse* tds__GetDeviceInformationResponse)
{
    if (!tds__GetDeviceInformationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDeviceInformationResponse(soap, tds__GetDeviceInformationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDeviceInformationResponse(soap, tds__GetDeviceInformationResponse, "tds:GetDeviceInformationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetSystemDateAndTime(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetSystemDateAndTime* tds__SetSystemDateAndTime, struct _tds__SetSystemDateAndTimeResponse* tds__SetSystemDateAndTimeResponse)
{
    if (soap_send___tds__SetSystemDateAndTime(soap, soap_endpoint, soap_action, tds__SetSystemDateAndTime) || soap_recv___tds__SetSystemDateAndTime(soap, tds__SetSystemDateAndTimeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetSystemDateAndTime(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetSystemDateAndTime* tds__SetSystemDateAndTime)
{
    struct __tds__SetSystemDateAndTime soap_tmp___tds__SetSystemDateAndTime;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemDateAndTime";
    soap_tmp___tds__SetSystemDateAndTime.tds__SetSystemDateAndTime = tds__SetSystemDateAndTime;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime, "-tds:SetSystemDateAndTime", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime, "-tds:SetSystemDateAndTime", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetSystemDateAndTime(struct soap* soap, struct _tds__SetSystemDateAndTimeResponse* tds__SetSystemDateAndTimeResponse)
{
    if (!tds__SetSystemDateAndTimeResponse)
        return soap_closesock(soap);
    soap_default__tds__SetSystemDateAndTimeResponse(soap, tds__SetSystemDateAndTimeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetSystemDateAndTimeResponse(soap, tds__SetSystemDateAndTimeResponse, "tds:SetSystemDateAndTimeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetSystemDateAndTime(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemDateAndTime* tds__GetSystemDateAndTime, struct _tds__GetSystemDateAndTimeResponse* tds__GetSystemDateAndTimeResponse)
{
    if (soap_send___tds__GetSystemDateAndTime(soap, soap_endpoint, soap_action, tds__GetSystemDateAndTime) || soap_recv___tds__GetSystemDateAndTime(soap, tds__GetSystemDateAndTimeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetSystemDateAndTime(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemDateAndTime* tds__GetSystemDateAndTime)
{
    struct __tds__GetSystemDateAndTime soap_tmp___tds__GetSystemDateAndTime;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime";
    soap_tmp___tds__GetSystemDateAndTime.tds__GetSystemDateAndTime = tds__GetSystemDateAndTime;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime, "-tds:GetSystemDateAndTime", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime, "-tds:GetSystemDateAndTime", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetSystemDateAndTime(struct soap* soap, struct _tds__GetSystemDateAndTimeResponse* tds__GetSystemDateAndTimeResponse)
{
    if (!tds__GetSystemDateAndTimeResponse)
        return soap_closesock(soap);
    soap_default__tds__GetSystemDateAndTimeResponse(soap, tds__GetSystemDateAndTimeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetSystemDateAndTimeResponse(soap, tds__GetSystemDateAndTimeResponse, "tds:GetSystemDateAndTimeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetSystemFactoryDefault(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetSystemFactoryDefault* tds__SetSystemFactoryDefault, struct _tds__SetSystemFactoryDefaultResponse* tds__SetSystemFactoryDefaultResponse)
{
    if (soap_send___tds__SetSystemFactoryDefault(soap, soap_endpoint, soap_action, tds__SetSystemFactoryDefault) || soap_recv___tds__SetSystemFactoryDefault(soap, tds__SetSystemFactoryDefaultResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetSystemFactoryDefault(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetSystemFactoryDefault* tds__SetSystemFactoryDefault)
{
    struct __tds__SetSystemFactoryDefault soap_tmp___tds__SetSystemFactoryDefault;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemFactoryDefault";
    soap_tmp___tds__SetSystemFactoryDefault.tds__SetSystemFactoryDefault = tds__SetSystemFactoryDefault;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault, "-tds:SetSystemFactoryDefault", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault, "-tds:SetSystemFactoryDefault", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetSystemFactoryDefault(struct soap* soap, struct _tds__SetSystemFactoryDefaultResponse* tds__SetSystemFactoryDefaultResponse)
{
    if (!tds__SetSystemFactoryDefaultResponse)
        return soap_closesock(soap);
    soap_default__tds__SetSystemFactoryDefaultResponse(soap, tds__SetSystemFactoryDefaultResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetSystemFactoryDefaultResponse(soap, tds__SetSystemFactoryDefaultResponse, "tds:SetSystemFactoryDefaultResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__UpgradeSystemFirmware(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__UpgradeSystemFirmware* tds__UpgradeSystemFirmware, struct _tds__UpgradeSystemFirmwareResponse* tds__UpgradeSystemFirmwareResponse)
{
    if (soap_send___tds__UpgradeSystemFirmware(soap, soap_endpoint, soap_action, tds__UpgradeSystemFirmware) || soap_recv___tds__UpgradeSystemFirmware(soap, tds__UpgradeSystemFirmwareResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__UpgradeSystemFirmware(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__UpgradeSystemFirmware* tds__UpgradeSystemFirmware)
{
    struct __tds__UpgradeSystemFirmware soap_tmp___tds__UpgradeSystemFirmware;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/UpgradeSystemFirmware";
    soap_tmp___tds__UpgradeSystemFirmware.tds__UpgradeSystemFirmware = tds__UpgradeSystemFirmware;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware, "-tds:UpgradeSystemFirmware", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware, "-tds:UpgradeSystemFirmware", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__UpgradeSystemFirmware(struct soap* soap, struct _tds__UpgradeSystemFirmwareResponse* tds__UpgradeSystemFirmwareResponse)
{
    if (!tds__UpgradeSystemFirmwareResponse)
        return soap_closesock(soap);
    soap_default__tds__UpgradeSystemFirmwareResponse(soap, tds__UpgradeSystemFirmwareResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__UpgradeSystemFirmwareResponse(soap, tds__UpgradeSystemFirmwareResponse, "tds:UpgradeSystemFirmwareResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SystemReboot(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SystemReboot* tds__SystemReboot, struct _tds__SystemRebootResponse* tds__SystemRebootResponse)
{
    if (soap_send___tds__SystemReboot(soap, soap_endpoint, soap_action, tds__SystemReboot) || soap_recv___tds__SystemReboot(soap, tds__SystemRebootResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SystemReboot(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SystemReboot* tds__SystemReboot)
{
    struct __tds__SystemReboot soap_tmp___tds__SystemReboot;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SystemReboot";
    soap_tmp___tds__SystemReboot.tds__SystemReboot = tds__SystemReboot;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot, "-tds:SystemReboot", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot, "-tds:SystemReboot", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SystemReboot(struct soap* soap, struct _tds__SystemRebootResponse* tds__SystemRebootResponse)
{
    if (!tds__SystemRebootResponse)
        return soap_closesock(soap);
    soap_default__tds__SystemRebootResponse(soap, tds__SystemRebootResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SystemRebootResponse(soap, tds__SystemRebootResponse, "tds:SystemRebootResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__RestoreSystem(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RestoreSystem* tds__RestoreSystem, struct _tds__RestoreSystemResponse* tds__RestoreSystemResponse)
{
    if (soap_send___tds__RestoreSystem(soap, soap_endpoint, soap_action, tds__RestoreSystem) || soap_recv___tds__RestoreSystem(soap, tds__RestoreSystemResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__RestoreSystem(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RestoreSystem* tds__RestoreSystem)
{
    struct __tds__RestoreSystem soap_tmp___tds__RestoreSystem;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/RestoreSystem";
    soap_tmp___tds__RestoreSystem.tds__RestoreSystem = tds__RestoreSystem;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem, "-tds:RestoreSystem", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem, "-tds:RestoreSystem", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__RestoreSystem(struct soap* soap, struct _tds__RestoreSystemResponse* tds__RestoreSystemResponse)
{
    if (!tds__RestoreSystemResponse)
        return soap_closesock(soap);
    soap_default__tds__RestoreSystemResponse(soap, tds__RestoreSystemResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__RestoreSystemResponse(soap, tds__RestoreSystemResponse, "tds:RestoreSystemResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetSystemBackup(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemBackup* tds__GetSystemBackup, struct _tds__GetSystemBackupResponse* tds__GetSystemBackupResponse)
{
    if (soap_send___tds__GetSystemBackup(soap, soap_endpoint, soap_action, tds__GetSystemBackup) || soap_recv___tds__GetSystemBackup(soap, tds__GetSystemBackupResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetSystemBackup(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemBackup* tds__GetSystemBackup)
{
    struct __tds__GetSystemBackup soap_tmp___tds__GetSystemBackup;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemBackup";
    soap_tmp___tds__GetSystemBackup.tds__GetSystemBackup = tds__GetSystemBackup;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup, "-tds:GetSystemBackup", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup, "-tds:GetSystemBackup", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetSystemBackup(struct soap* soap, struct _tds__GetSystemBackupResponse* tds__GetSystemBackupResponse)
{
    if (!tds__GetSystemBackupResponse)
        return soap_closesock(soap);
    soap_default__tds__GetSystemBackupResponse(soap, tds__GetSystemBackupResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetSystemBackupResponse(soap, tds__GetSystemBackupResponse, "tds:GetSystemBackupResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetSystemLog(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemLog* tds__GetSystemLog, struct _tds__GetSystemLogResponse* tds__GetSystemLogResponse)
{
    if (soap_send___tds__GetSystemLog(soap, soap_endpoint, soap_action, tds__GetSystemLog) || soap_recv___tds__GetSystemLog(soap, tds__GetSystemLogResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetSystemLog(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemLog* tds__GetSystemLog)
{
    struct __tds__GetSystemLog soap_tmp___tds__GetSystemLog;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemLog";
    soap_tmp___tds__GetSystemLog.tds__GetSystemLog = tds__GetSystemLog;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog, "-tds:GetSystemLog", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog, "-tds:GetSystemLog", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetSystemLog(struct soap* soap, struct _tds__GetSystemLogResponse* tds__GetSystemLogResponse)
{
    if (!tds__GetSystemLogResponse)
        return soap_closesock(soap);
    soap_default__tds__GetSystemLogResponse(soap, tds__GetSystemLogResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetSystemLogResponse(soap, tds__GetSystemLogResponse, "tds:GetSystemLogResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetSystemSupportInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemSupportInformation* tds__GetSystemSupportInformation, struct _tds__GetSystemSupportInformationResponse* tds__GetSystemSupportInformationResponse)
{
    if (soap_send___tds__GetSystemSupportInformation(soap, soap_endpoint, soap_action, tds__GetSystemSupportInformation) || soap_recv___tds__GetSystemSupportInformation(soap, tds__GetSystemSupportInformationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetSystemSupportInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemSupportInformation* tds__GetSystemSupportInformation)
{
    struct __tds__GetSystemSupportInformation soap_tmp___tds__GetSystemSupportInformation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemSupportInformation";
    soap_tmp___tds__GetSystemSupportInformation.tds__GetSystemSupportInformation = tds__GetSystemSupportInformation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation, "-tds:GetSystemSupportInformation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation, "-tds:GetSystemSupportInformation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetSystemSupportInformation(struct soap* soap, struct _tds__GetSystemSupportInformationResponse* tds__GetSystemSupportInformationResponse)
{
    if (!tds__GetSystemSupportInformationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetSystemSupportInformationResponse(soap, tds__GetSystemSupportInformationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetSystemSupportInformationResponse(soap, tds__GetSystemSupportInformationResponse, "tds:GetSystemSupportInformationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetScopes* tds__GetScopes, struct _tds__GetScopesResponse* tds__GetScopesResponse)
{
    if (soap_send___tds__GetScopes(soap, soap_endpoint, soap_action, tds__GetScopes) || soap_recv___tds__GetScopes(soap, tds__GetScopesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetScopes* tds__GetScopes)
{
    struct __tds__GetScopes soap_tmp___tds__GetScopes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetScopes";
    soap_tmp___tds__GetScopes.tds__GetScopes = tds__GetScopes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetScopes(soap, &soap_tmp___tds__GetScopes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetScopes(soap, &soap_tmp___tds__GetScopes, "-tds:GetScopes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetScopes(soap, &soap_tmp___tds__GetScopes, "-tds:GetScopes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetScopes(struct soap* soap, struct _tds__GetScopesResponse* tds__GetScopesResponse)
{
    if (!tds__GetScopesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetScopesResponse(soap, tds__GetScopesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetScopesResponse(soap, tds__GetScopesResponse, "tds:GetScopesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetScopes* tds__SetScopes, struct _tds__SetScopesResponse* tds__SetScopesResponse)
{
    if (soap_send___tds__SetScopes(soap, soap_endpoint, soap_action, tds__SetScopes) || soap_recv___tds__SetScopes(soap, tds__SetScopesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetScopes* tds__SetScopes)
{
    struct __tds__SetScopes soap_tmp___tds__SetScopes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetScopes";
    soap_tmp___tds__SetScopes.tds__SetScopes = tds__SetScopes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetScopes(soap, &soap_tmp___tds__SetScopes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetScopes(soap, &soap_tmp___tds__SetScopes, "-tds:SetScopes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetScopes(soap, &soap_tmp___tds__SetScopes, "-tds:SetScopes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetScopes(struct soap* soap, struct _tds__SetScopesResponse* tds__SetScopesResponse)
{
    if (!tds__SetScopesResponse)
        return soap_closesock(soap);
    soap_default__tds__SetScopesResponse(soap, tds__SetScopesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetScopesResponse(soap, tds__SetScopesResponse, "tds:SetScopesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__AddScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__AddScopes* tds__AddScopes, struct _tds__AddScopesResponse* tds__AddScopesResponse)
{
    if (soap_send___tds__AddScopes(soap, soap_endpoint, soap_action, tds__AddScopes) || soap_recv___tds__AddScopes(soap, tds__AddScopesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__AddScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__AddScopes* tds__AddScopes)
{
    struct __tds__AddScopes soap_tmp___tds__AddScopes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/AddScopes";
    soap_tmp___tds__AddScopes.tds__AddScopes = tds__AddScopes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__AddScopes(soap, &soap_tmp___tds__AddScopes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__AddScopes(soap, &soap_tmp___tds__AddScopes, "-tds:AddScopes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__AddScopes(soap, &soap_tmp___tds__AddScopes, "-tds:AddScopes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__AddScopes(struct soap* soap, struct _tds__AddScopesResponse* tds__AddScopesResponse)
{
    if (!tds__AddScopesResponse)
        return soap_closesock(soap);
    soap_default__tds__AddScopesResponse(soap, tds__AddScopesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__AddScopesResponse(soap, tds__AddScopesResponse, "tds:AddScopesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__RemoveScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RemoveScopes* tds__RemoveScopes, struct _tds__RemoveScopesResponse* tds__RemoveScopesResponse)
{
    if (soap_send___tds__RemoveScopes(soap, soap_endpoint, soap_action, tds__RemoveScopes) || soap_recv___tds__RemoveScopes(soap, tds__RemoveScopesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__RemoveScopes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RemoveScopes* tds__RemoveScopes)
{
    struct __tds__RemoveScopes soap_tmp___tds__RemoveScopes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveScopes";
    soap_tmp___tds__RemoveScopes.tds__RemoveScopes = tds__RemoveScopes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes, "-tds:RemoveScopes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes, "-tds:RemoveScopes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__RemoveScopes(struct soap* soap, struct _tds__RemoveScopesResponse* tds__RemoveScopesResponse)
{
    if (!tds__RemoveScopesResponse)
        return soap_closesock(soap);
    soap_default__tds__RemoveScopesResponse(soap, tds__RemoveScopesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__RemoveScopesResponse(soap, tds__RemoveScopesResponse, "tds:RemoveScopesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDiscoveryMode* tds__GetDiscoveryMode, struct _tds__GetDiscoveryModeResponse* tds__GetDiscoveryModeResponse)
{
    if (soap_send___tds__GetDiscoveryMode(soap, soap_endpoint, soap_action, tds__GetDiscoveryMode) || soap_recv___tds__GetDiscoveryMode(soap, tds__GetDiscoveryModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDiscoveryMode* tds__GetDiscoveryMode)
{
    struct __tds__GetDiscoveryMode soap_tmp___tds__GetDiscoveryMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDiscoveryMode";
    soap_tmp___tds__GetDiscoveryMode.tds__GetDiscoveryMode = tds__GetDiscoveryMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode, "-tds:GetDiscoveryMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode, "-tds:GetDiscoveryMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDiscoveryMode(struct soap* soap, struct _tds__GetDiscoveryModeResponse* tds__GetDiscoveryModeResponse)
{
    if (!tds__GetDiscoveryModeResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDiscoveryModeResponse(soap, tds__GetDiscoveryModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDiscoveryModeResponse(soap, tds__GetDiscoveryModeResponse, "tds:GetDiscoveryModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDiscoveryMode* tds__SetDiscoveryMode, struct _tds__SetDiscoveryModeResponse* tds__SetDiscoveryModeResponse)
{
    if (soap_send___tds__SetDiscoveryMode(soap, soap_endpoint, soap_action, tds__SetDiscoveryMode) || soap_recv___tds__SetDiscoveryMode(soap, tds__SetDiscoveryModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDiscoveryMode* tds__SetDiscoveryMode)
{
    struct __tds__SetDiscoveryMode soap_tmp___tds__SetDiscoveryMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDiscoveryMode";
    soap_tmp___tds__SetDiscoveryMode.tds__SetDiscoveryMode = tds__SetDiscoveryMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode, "-tds:SetDiscoveryMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode, "-tds:SetDiscoveryMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetDiscoveryMode(struct soap* soap, struct _tds__SetDiscoveryModeResponse* tds__SetDiscoveryModeResponse)
{
    if (!tds__SetDiscoveryModeResponse)
        return soap_closesock(soap);
    soap_default__tds__SetDiscoveryModeResponse(soap, tds__SetDiscoveryModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetDiscoveryModeResponse(soap, tds__SetDiscoveryModeResponse, "tds:SetDiscoveryModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetRemoteDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRemoteDiscoveryMode* tds__GetRemoteDiscoveryMode, struct _tds__GetRemoteDiscoveryModeResponse* tds__GetRemoteDiscoveryModeResponse)
{
    if (soap_send___tds__GetRemoteDiscoveryMode(soap, soap_endpoint, soap_action, tds__GetRemoteDiscoveryMode) || soap_recv___tds__GetRemoteDiscoveryMode(soap, tds__GetRemoteDiscoveryModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetRemoteDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRemoteDiscoveryMode* tds__GetRemoteDiscoveryMode)
{
    struct __tds__GetRemoteDiscoveryMode soap_tmp___tds__GetRemoteDiscoveryMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteDiscoveryMode";
    soap_tmp___tds__GetRemoteDiscoveryMode.tds__GetRemoteDiscoveryMode = tds__GetRemoteDiscoveryMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode, "-tds:GetRemoteDiscoveryMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode, "-tds:GetRemoteDiscoveryMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetRemoteDiscoveryMode(struct soap* soap, struct _tds__GetRemoteDiscoveryModeResponse* tds__GetRemoteDiscoveryModeResponse)
{
    if (!tds__GetRemoteDiscoveryModeResponse)
        return soap_closesock(soap);
    soap_default__tds__GetRemoteDiscoveryModeResponse(soap, tds__GetRemoteDiscoveryModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetRemoteDiscoveryModeResponse(soap, tds__GetRemoteDiscoveryModeResponse, "tds:GetRemoteDiscoveryModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetRemoteDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRemoteDiscoveryMode* tds__SetRemoteDiscoveryMode, struct _tds__SetRemoteDiscoveryModeResponse* tds__SetRemoteDiscoveryModeResponse)
{
    if (soap_send___tds__SetRemoteDiscoveryMode(soap, soap_endpoint, soap_action, tds__SetRemoteDiscoveryMode) || soap_recv___tds__SetRemoteDiscoveryMode(soap, tds__SetRemoteDiscoveryModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetRemoteDiscoveryMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRemoteDiscoveryMode* tds__SetRemoteDiscoveryMode)
{
    struct __tds__SetRemoteDiscoveryMode soap_tmp___tds__SetRemoteDiscoveryMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteDiscoveryMode";
    soap_tmp___tds__SetRemoteDiscoveryMode.tds__SetRemoteDiscoveryMode = tds__SetRemoteDiscoveryMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode, "-tds:SetRemoteDiscoveryMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode, "-tds:SetRemoteDiscoveryMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetRemoteDiscoveryMode(struct soap* soap, struct _tds__SetRemoteDiscoveryModeResponse* tds__SetRemoteDiscoveryModeResponse)
{
    if (!tds__SetRemoteDiscoveryModeResponse)
        return soap_closesock(soap);
    soap_default__tds__SetRemoteDiscoveryModeResponse(soap, tds__SetRemoteDiscoveryModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetRemoteDiscoveryModeResponse(soap, tds__SetRemoteDiscoveryModeResponse, "tds:SetRemoteDiscoveryModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDPAddresses(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDPAddresses* tds__GetDPAddresses, struct _tds__GetDPAddressesResponse* tds__GetDPAddressesResponse)
{
    if (soap_send___tds__GetDPAddresses(soap, soap_endpoint, soap_action, tds__GetDPAddresses) || soap_recv___tds__GetDPAddresses(soap, tds__GetDPAddressesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDPAddresses(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDPAddresses* tds__GetDPAddresses)
{
    struct __tds__GetDPAddresses soap_tmp___tds__GetDPAddresses;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDPAddresses";
    soap_tmp___tds__GetDPAddresses.tds__GetDPAddresses = tds__GetDPAddresses;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses, "-tds:GetDPAddresses", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses, "-tds:GetDPAddresses", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDPAddresses(struct soap* soap, struct _tds__GetDPAddressesResponse* tds__GetDPAddressesResponse)
{
    if (!tds__GetDPAddressesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDPAddressesResponse(soap, tds__GetDPAddressesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDPAddressesResponse(soap, tds__GetDPAddressesResponse, "tds:GetDPAddressesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetEndpointReference(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetEndpointReference* tds__GetEndpointReference, struct _tds__GetEndpointReferenceResponse* tds__GetEndpointReferenceResponse)
{
    if (soap_send___tds__GetEndpointReference(soap, soap_endpoint, soap_action, tds__GetEndpointReference) || soap_recv___tds__GetEndpointReference(soap, tds__GetEndpointReferenceResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetEndpointReference(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetEndpointReference* tds__GetEndpointReference)
{
    struct __tds__GetEndpointReference soap_tmp___tds__GetEndpointReference;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetEndpointReference";
    soap_tmp___tds__GetEndpointReference.tds__GetEndpointReference = tds__GetEndpointReference;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference, "-tds:GetEndpointReference", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference, "-tds:GetEndpointReference", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetEndpointReference(struct soap* soap, struct _tds__GetEndpointReferenceResponse* tds__GetEndpointReferenceResponse)
{
    if (!tds__GetEndpointReferenceResponse)
        return soap_closesock(soap);
    soap_default__tds__GetEndpointReferenceResponse(soap, tds__GetEndpointReferenceResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetEndpointReferenceResponse(soap, tds__GetEndpointReferenceResponse, "tds:GetEndpointReferenceResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetRemoteUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRemoteUser* tds__GetRemoteUser, struct _tds__GetRemoteUserResponse* tds__GetRemoteUserResponse)
{
    if (soap_send___tds__GetRemoteUser(soap, soap_endpoint, soap_action, tds__GetRemoteUser) || soap_recv___tds__GetRemoteUser(soap, tds__GetRemoteUserResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetRemoteUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRemoteUser* tds__GetRemoteUser)
{
    struct __tds__GetRemoteUser soap_tmp___tds__GetRemoteUser;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteUser";
    soap_tmp___tds__GetRemoteUser.tds__GetRemoteUser = tds__GetRemoteUser;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser, "-tds:GetRemoteUser", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser, "-tds:GetRemoteUser", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetRemoteUser(struct soap* soap, struct _tds__GetRemoteUserResponse* tds__GetRemoteUserResponse)
{
    if (!tds__GetRemoteUserResponse)
        return soap_closesock(soap);
    soap_default__tds__GetRemoteUserResponse(soap, tds__GetRemoteUserResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetRemoteUserResponse(soap, tds__GetRemoteUserResponse, "tds:GetRemoteUserResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetRemoteUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRemoteUser* tds__SetRemoteUser, struct _tds__SetRemoteUserResponse* tds__SetRemoteUserResponse)
{
    if (soap_send___tds__SetRemoteUser(soap, soap_endpoint, soap_action, tds__SetRemoteUser) || soap_recv___tds__SetRemoteUser(soap, tds__SetRemoteUserResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetRemoteUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRemoteUser* tds__SetRemoteUser)
{
    struct __tds__SetRemoteUser soap_tmp___tds__SetRemoteUser;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteUser";
    soap_tmp___tds__SetRemoteUser.tds__SetRemoteUser = tds__SetRemoteUser;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser, "-tds:SetRemoteUser", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser, "-tds:SetRemoteUser", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetRemoteUser(struct soap* soap, struct _tds__SetRemoteUserResponse* tds__SetRemoteUserResponse)
{
    if (!tds__SetRemoteUserResponse)
        return soap_closesock(soap);
    soap_default__tds__SetRemoteUserResponse(soap, tds__SetRemoteUserResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetRemoteUserResponse(soap, tds__SetRemoteUserResponse, "tds:SetRemoteUserResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetUsers* tds__GetUsers, struct _tds__GetUsersResponse* tds__GetUsersResponse)
{
    if (soap_send___tds__GetUsers(soap, soap_endpoint, soap_action, tds__GetUsers) || soap_recv___tds__GetUsers(soap, tds__GetUsersResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetUsers* tds__GetUsers)
{
    struct __tds__GetUsers soap_tmp___tds__GetUsers;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetUsers";
    soap_tmp___tds__GetUsers.tds__GetUsers = tds__GetUsers;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetUsers(soap, &soap_tmp___tds__GetUsers);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetUsers(soap, &soap_tmp___tds__GetUsers, "-tds:GetUsers", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetUsers(soap, &soap_tmp___tds__GetUsers, "-tds:GetUsers", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetUsers(struct soap* soap, struct _tds__GetUsersResponse* tds__GetUsersResponse)
{
    if (!tds__GetUsersResponse)
        return soap_closesock(soap);
    soap_default__tds__GetUsersResponse(soap, tds__GetUsersResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetUsersResponse(soap, tds__GetUsersResponse, "tds:GetUsersResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__CreateUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateUsers* tds__CreateUsers, struct _tds__CreateUsersResponse* tds__CreateUsersResponse)
{
    if (soap_send___tds__CreateUsers(soap, soap_endpoint, soap_action, tds__CreateUsers) || soap_recv___tds__CreateUsers(soap, tds__CreateUsersResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__CreateUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateUsers* tds__CreateUsers)
{
    struct __tds__CreateUsers soap_tmp___tds__CreateUsers;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateUsers";
    soap_tmp___tds__CreateUsers.tds__CreateUsers = tds__CreateUsers;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers, "-tds:CreateUsers", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers, "-tds:CreateUsers", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__CreateUsers(struct soap* soap, struct _tds__CreateUsersResponse* tds__CreateUsersResponse)
{
    if (!tds__CreateUsersResponse)
        return soap_closesock(soap);
    soap_default__tds__CreateUsersResponse(soap, tds__CreateUsersResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__CreateUsersResponse(soap, tds__CreateUsersResponse, "tds:CreateUsersResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__DeleteUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteUsers* tds__DeleteUsers, struct _tds__DeleteUsersResponse* tds__DeleteUsersResponse)
{
    if (soap_send___tds__DeleteUsers(soap, soap_endpoint, soap_action, tds__DeleteUsers) || soap_recv___tds__DeleteUsers(soap, tds__DeleteUsersResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__DeleteUsers(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteUsers* tds__DeleteUsers)
{
    struct __tds__DeleteUsers soap_tmp___tds__DeleteUsers;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteUsers";
    soap_tmp___tds__DeleteUsers.tds__DeleteUsers = tds__DeleteUsers;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers, "-tds:DeleteUsers", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers, "-tds:DeleteUsers", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__DeleteUsers(struct soap* soap, struct _tds__DeleteUsersResponse* tds__DeleteUsersResponse)
{
    if (!tds__DeleteUsersResponse)
        return soap_closesock(soap);
    soap_default__tds__DeleteUsersResponse(soap, tds__DeleteUsersResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__DeleteUsersResponse(soap, tds__DeleteUsersResponse, "tds:DeleteUsersResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetUser* tds__SetUser, struct _tds__SetUserResponse* tds__SetUserResponse)
{
    if (soap_send___tds__SetUser(soap, soap_endpoint, soap_action, tds__SetUser) || soap_recv___tds__SetUser(soap, tds__SetUserResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetUser(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetUser* tds__SetUser)
{
    struct __tds__SetUser soap_tmp___tds__SetUser;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetUser";
    soap_tmp___tds__SetUser.tds__SetUser = tds__SetUser;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetUser(soap, &soap_tmp___tds__SetUser);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetUser(soap, &soap_tmp___tds__SetUser, "-tds:SetUser", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetUser(soap, &soap_tmp___tds__SetUser, "-tds:SetUser", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetUser(struct soap* soap, struct _tds__SetUserResponse* tds__SetUserResponse)
{
    if (!tds__SetUserResponse)
        return soap_closesock(soap);
    soap_default__tds__SetUserResponse(soap, tds__SetUserResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetUserResponse(soap, tds__SetUserResponse, "tds:SetUserResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetWsdlUrl(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetWsdlUrl* tds__GetWsdlUrl, struct _tds__GetWsdlUrlResponse* tds__GetWsdlUrlResponse)
{
    if (soap_send___tds__GetWsdlUrl(soap, soap_endpoint, soap_action, tds__GetWsdlUrl) || soap_recv___tds__GetWsdlUrl(soap, tds__GetWsdlUrlResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetWsdlUrl(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetWsdlUrl* tds__GetWsdlUrl)
{
    struct __tds__GetWsdlUrl soap_tmp___tds__GetWsdlUrl;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetWsdlUrl";
    soap_tmp___tds__GetWsdlUrl.tds__GetWsdlUrl = tds__GetWsdlUrl;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl, "-tds:GetWsdlUrl", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl, "-tds:GetWsdlUrl", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetWsdlUrl(struct soap* soap, struct _tds__GetWsdlUrlResponse* tds__GetWsdlUrlResponse)
{
    if (!tds__GetWsdlUrlResponse)
        return soap_closesock(soap);
    soap_default__tds__GetWsdlUrlResponse(soap, tds__GetWsdlUrlResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetWsdlUrlResponse(soap, tds__GetWsdlUrlResponse, "tds:GetWsdlUrlResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCapabilities* tds__GetCapabilities, struct _tds__GetCapabilitiesResponse* tds__GetCapabilitiesResponse)
{
    if (soap_send___tds__GetCapabilities(soap, soap_endpoint, soap_action, tds__GetCapabilities) || soap_recv___tds__GetCapabilities(soap, tds__GetCapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCapabilities* tds__GetCapabilities)
{
    struct __tds__GetCapabilities soap_tmp___tds__GetCapabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCapabilities";
    soap_tmp___tds__GetCapabilities.tds__GetCapabilities = tds__GetCapabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities, "-tds:GetCapabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities, "-tds:GetCapabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetCapabilities(struct soap* soap, struct _tds__GetCapabilitiesResponse* tds__GetCapabilitiesResponse)
{
    if (!tds__GetCapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetCapabilitiesResponse(soap, tds__GetCapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetCapabilitiesResponse(soap, tds__GetCapabilitiesResponse, "tds:GetCapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetDPAddresses(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDPAddresses* tds__SetDPAddresses, struct _tds__SetDPAddressesResponse* tds__SetDPAddressesResponse)
{
    if (soap_send___tds__SetDPAddresses(soap, soap_endpoint, soap_action, tds__SetDPAddresses) || soap_recv___tds__SetDPAddresses(soap, tds__SetDPAddressesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetDPAddresses(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDPAddresses* tds__SetDPAddresses)
{
    struct __tds__SetDPAddresses soap_tmp___tds__SetDPAddresses;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDPAddresses";
    soap_tmp___tds__SetDPAddresses.tds__SetDPAddresses = tds__SetDPAddresses;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses, "-tds:SetDPAddresses", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses, "-tds:SetDPAddresses", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetDPAddresses(struct soap* soap, struct _tds__SetDPAddressesResponse* tds__SetDPAddressesResponse)
{
    if (!tds__SetDPAddressesResponse)
        return soap_closesock(soap);
    soap_default__tds__SetDPAddressesResponse(soap, tds__SetDPAddressesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetDPAddressesResponse(soap, tds__SetDPAddressesResponse, "tds:SetDPAddressesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetHostname(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetHostname* tds__GetHostname, struct _tds__GetHostnameResponse* tds__GetHostnameResponse)
{
    if (soap_send___tds__GetHostname(soap, soap_endpoint, soap_action, tds__GetHostname) || soap_recv___tds__GetHostname(soap, tds__GetHostnameResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetHostname(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetHostname* tds__GetHostname)
{
    struct __tds__GetHostname soap_tmp___tds__GetHostname;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetHostname";
    soap_tmp___tds__GetHostname.tds__GetHostname = tds__GetHostname;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetHostname(soap, &soap_tmp___tds__GetHostname);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetHostname(soap, &soap_tmp___tds__GetHostname, "-tds:GetHostname", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetHostname(soap, &soap_tmp___tds__GetHostname, "-tds:GetHostname", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetHostname(struct soap* soap, struct _tds__GetHostnameResponse* tds__GetHostnameResponse)
{
    if (!tds__GetHostnameResponse)
        return soap_closesock(soap);
    soap_default__tds__GetHostnameResponse(soap, tds__GetHostnameResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetHostnameResponse(soap, tds__GetHostnameResponse, "tds:GetHostnameResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetHostname(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetHostname* tds__SetHostname, struct _tds__SetHostnameResponse* tds__SetHostnameResponse)
{
    if (soap_send___tds__SetHostname(soap, soap_endpoint, soap_action, tds__SetHostname) || soap_recv___tds__SetHostname(soap, tds__SetHostnameResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetHostname(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetHostname* tds__SetHostname)
{
    struct __tds__SetHostname soap_tmp___tds__SetHostname;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostname";
    soap_tmp___tds__SetHostname.tds__SetHostname = tds__SetHostname;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetHostname(soap, &soap_tmp___tds__SetHostname);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetHostname(soap, &soap_tmp___tds__SetHostname, "-tds:SetHostname", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetHostname(soap, &soap_tmp___tds__SetHostname, "-tds:SetHostname", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetHostname(struct soap* soap, struct _tds__SetHostnameResponse* tds__SetHostnameResponse)
{
    if (!tds__SetHostnameResponse)
        return soap_closesock(soap);
    soap_default__tds__SetHostnameResponse(soap, tds__SetHostnameResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetHostnameResponse(soap, tds__SetHostnameResponse, "tds:SetHostnameResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetHostnameFromDHCP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetHostnameFromDHCP* tds__SetHostnameFromDHCP, struct _tds__SetHostnameFromDHCPResponse* tds__SetHostnameFromDHCPResponse)
{
    if (soap_send___tds__SetHostnameFromDHCP(soap, soap_endpoint, soap_action, tds__SetHostnameFromDHCP) || soap_recv___tds__SetHostnameFromDHCP(soap, tds__SetHostnameFromDHCPResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetHostnameFromDHCP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetHostnameFromDHCP* tds__SetHostnameFromDHCP)
{
    struct __tds__SetHostnameFromDHCP soap_tmp___tds__SetHostnameFromDHCP;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostnameFromDHCP";
    soap_tmp___tds__SetHostnameFromDHCP.tds__SetHostnameFromDHCP = tds__SetHostnameFromDHCP;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP, "-tds:SetHostnameFromDHCP", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP, "-tds:SetHostnameFromDHCP", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetHostnameFromDHCP(struct soap* soap, struct _tds__SetHostnameFromDHCPResponse* tds__SetHostnameFromDHCPResponse)
{
    if (!tds__SetHostnameFromDHCPResponse)
        return soap_closesock(soap);
    soap_default__tds__SetHostnameFromDHCPResponse(soap, tds__SetHostnameFromDHCPResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetHostnameFromDHCPResponse(soap, tds__SetHostnameFromDHCPResponse, "tds:SetHostnameFromDHCPResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDNS* tds__GetDNS, struct _tds__GetDNSResponse* tds__GetDNSResponse)
{
    if (soap_send___tds__GetDNS(soap, soap_endpoint, soap_action, tds__GetDNS) || soap_recv___tds__GetDNS(soap, tds__GetDNSResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDNS* tds__GetDNS)
{
    struct __tds__GetDNS soap_tmp___tds__GetDNS;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDNS";
    soap_tmp___tds__GetDNS.tds__GetDNS = tds__GetDNS;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDNS(soap, &soap_tmp___tds__GetDNS);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDNS(soap, &soap_tmp___tds__GetDNS, "-tds:GetDNS", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDNS(soap, &soap_tmp___tds__GetDNS, "-tds:GetDNS", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDNS(struct soap* soap, struct _tds__GetDNSResponse* tds__GetDNSResponse)
{
    if (!tds__GetDNSResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDNSResponse(soap, tds__GetDNSResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDNSResponse(soap, tds__GetDNSResponse, "tds:GetDNSResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDNS* tds__SetDNS, struct _tds__SetDNSResponse* tds__SetDNSResponse)
{
    if (soap_send___tds__SetDNS(soap, soap_endpoint, soap_action, tds__SetDNS) || soap_recv___tds__SetDNS(soap, tds__SetDNSResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDNS* tds__SetDNS)
{
    struct __tds__SetDNS soap_tmp___tds__SetDNS;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDNS";
    soap_tmp___tds__SetDNS.tds__SetDNS = tds__SetDNS;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetDNS(soap, &soap_tmp___tds__SetDNS);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetDNS(soap, &soap_tmp___tds__SetDNS, "-tds:SetDNS", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetDNS(soap, &soap_tmp___tds__SetDNS, "-tds:SetDNS", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetDNS(struct soap* soap, struct _tds__SetDNSResponse* tds__SetDNSResponse)
{
    if (!tds__SetDNSResponse)
        return soap_closesock(soap);
    soap_default__tds__SetDNSResponse(soap, tds__SetDNSResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetDNSResponse(soap, tds__SetDNSResponse, "tds:SetDNSResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetNTP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNTP* tds__GetNTP, struct _tds__GetNTPResponse* tds__GetNTPResponse)
{
    if (soap_send___tds__GetNTP(soap, soap_endpoint, soap_action, tds__GetNTP) || soap_recv___tds__GetNTP(soap, tds__GetNTPResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetNTP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNTP* tds__GetNTP)
{
    struct __tds__GetNTP soap_tmp___tds__GetNTP;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNTP";
    soap_tmp___tds__GetNTP.tds__GetNTP = tds__GetNTP;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetNTP(soap, &soap_tmp___tds__GetNTP);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetNTP(soap, &soap_tmp___tds__GetNTP, "-tds:GetNTP", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetNTP(soap, &soap_tmp___tds__GetNTP, "-tds:GetNTP", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetNTP(struct soap* soap, struct _tds__GetNTPResponse* tds__GetNTPResponse)
{
    if (!tds__GetNTPResponse)
        return soap_closesock(soap);
    soap_default__tds__GetNTPResponse(soap, tds__GetNTPResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetNTPResponse(soap, tds__GetNTPResponse, "tds:GetNTPResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetNTP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNTP* tds__SetNTP, struct _tds__SetNTPResponse* tds__SetNTPResponse)
{
    if (soap_send___tds__SetNTP(soap, soap_endpoint, soap_action, tds__SetNTP) || soap_recv___tds__SetNTP(soap, tds__SetNTPResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetNTP(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNTP* tds__SetNTP)
{
    struct __tds__SetNTP soap_tmp___tds__SetNTP;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNTP";
    soap_tmp___tds__SetNTP.tds__SetNTP = tds__SetNTP;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetNTP(soap, &soap_tmp___tds__SetNTP);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetNTP(soap, &soap_tmp___tds__SetNTP, "-tds:SetNTP", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetNTP(soap, &soap_tmp___tds__SetNTP, "-tds:SetNTP", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetNTP(struct soap* soap, struct _tds__SetNTPResponse* tds__SetNTPResponse)
{
    if (!tds__SetNTPResponse)
        return soap_closesock(soap);
    soap_default__tds__SetNTPResponse(soap, tds__SetNTPResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetNTPResponse(soap, tds__SetNTPResponse, "tds:SetNTPResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDynamicDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDynamicDNS* tds__GetDynamicDNS, struct _tds__GetDynamicDNSResponse* tds__GetDynamicDNSResponse)
{
    if (soap_send___tds__GetDynamicDNS(soap, soap_endpoint, soap_action, tds__GetDynamicDNS) || soap_recv___tds__GetDynamicDNS(soap, tds__GetDynamicDNSResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDynamicDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDynamicDNS* tds__GetDynamicDNS)
{
    struct __tds__GetDynamicDNS soap_tmp___tds__GetDynamicDNS;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDynamicDNS";
    soap_tmp___tds__GetDynamicDNS.tds__GetDynamicDNS = tds__GetDynamicDNS;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS, "-tds:GetDynamicDNS", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS, "-tds:GetDynamicDNS", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDynamicDNS(struct soap* soap, struct _tds__GetDynamicDNSResponse* tds__GetDynamicDNSResponse)
{
    if (!tds__GetDynamicDNSResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDynamicDNSResponse(soap, tds__GetDynamicDNSResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDynamicDNSResponse(soap, tds__GetDynamicDNSResponse, "tds:GetDynamicDNSResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetDynamicDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDynamicDNS* tds__SetDynamicDNS, struct _tds__SetDynamicDNSResponse* tds__SetDynamicDNSResponse)
{
    if (soap_send___tds__SetDynamicDNS(soap, soap_endpoint, soap_action, tds__SetDynamicDNS) || soap_recv___tds__SetDynamicDNS(soap, tds__SetDynamicDNSResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetDynamicDNS(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDynamicDNS* tds__SetDynamicDNS)
{
    struct __tds__SetDynamicDNS soap_tmp___tds__SetDynamicDNS;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDynamicDNS";
    soap_tmp___tds__SetDynamicDNS.tds__SetDynamicDNS = tds__SetDynamicDNS;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS, "-tds:SetDynamicDNS", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS, "-tds:SetDynamicDNS", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetDynamicDNS(struct soap* soap, struct _tds__SetDynamicDNSResponse* tds__SetDynamicDNSResponse)
{
    if (!tds__SetDynamicDNSResponse)
        return soap_closesock(soap);
    soap_default__tds__SetDynamicDNSResponse(soap, tds__SetDynamicDNSResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetDynamicDNSResponse(soap, tds__SetDynamicDNSResponse, "tds:SetDynamicDNSResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetNetworkInterfaces(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkInterfaces* tds__GetNetworkInterfaces, struct _tds__GetNetworkInterfacesResponse* tds__GetNetworkInterfacesResponse)
{
    if (soap_send___tds__GetNetworkInterfaces(soap, soap_endpoint, soap_action, tds__GetNetworkInterfaces) || soap_recv___tds__GetNetworkInterfaces(soap, tds__GetNetworkInterfacesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetNetworkInterfaces(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkInterfaces* tds__GetNetworkInterfaces)
{
    struct __tds__GetNetworkInterfaces soap_tmp___tds__GetNetworkInterfaces;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces";
    soap_tmp___tds__GetNetworkInterfaces.tds__GetNetworkInterfaces = tds__GetNetworkInterfaces;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces, "-tds:GetNetworkInterfaces", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces, "-tds:GetNetworkInterfaces", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetNetworkInterfaces(struct soap* soap, struct _tds__GetNetworkInterfacesResponse* tds__GetNetworkInterfacesResponse)
{
    if (!tds__GetNetworkInterfacesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetNetworkInterfacesResponse(soap, tds__GetNetworkInterfacesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetNetworkInterfacesResponse(soap, tds__GetNetworkInterfacesResponse, "tds:GetNetworkInterfacesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetNetworkInterfaces(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkInterfaces* tds__SetNetworkInterfaces, struct _tds__SetNetworkInterfacesResponse* tds__SetNetworkInterfacesResponse)
{
    if (soap_send___tds__SetNetworkInterfaces(soap, soap_endpoint, soap_action, tds__SetNetworkInterfaces) || soap_recv___tds__SetNetworkInterfaces(soap, tds__SetNetworkInterfacesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetNetworkInterfaces(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkInterfaces* tds__SetNetworkInterfaces)
{
    struct __tds__SetNetworkInterfaces soap_tmp___tds__SetNetworkInterfaces;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkInterfaces";
    soap_tmp___tds__SetNetworkInterfaces.tds__SetNetworkInterfaces = tds__SetNetworkInterfaces;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces, "-tds:SetNetworkInterfaces", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces, "-tds:SetNetworkInterfaces", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetNetworkInterfaces(struct soap* soap, struct _tds__SetNetworkInterfacesResponse* tds__SetNetworkInterfacesResponse)
{
    if (!tds__SetNetworkInterfacesResponse)
        return soap_closesock(soap);
    soap_default__tds__SetNetworkInterfacesResponse(soap, tds__SetNetworkInterfacesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetNetworkInterfacesResponse(soap, tds__SetNetworkInterfacesResponse, "tds:SetNetworkInterfacesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetNetworkProtocols(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkProtocols* tds__GetNetworkProtocols, struct _tds__GetNetworkProtocolsResponse* tds__GetNetworkProtocolsResponse)
{
    if (soap_send___tds__GetNetworkProtocols(soap, soap_endpoint, soap_action, tds__GetNetworkProtocols) || soap_recv___tds__GetNetworkProtocols(soap, tds__GetNetworkProtocolsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetNetworkProtocols(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkProtocols* tds__GetNetworkProtocols)
{
    struct __tds__GetNetworkProtocols soap_tmp___tds__GetNetworkProtocols;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkProtocols";
    soap_tmp___tds__GetNetworkProtocols.tds__GetNetworkProtocols = tds__GetNetworkProtocols;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols, "-tds:GetNetworkProtocols", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols, "-tds:GetNetworkProtocols", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetNetworkProtocols(struct soap* soap, struct _tds__GetNetworkProtocolsResponse* tds__GetNetworkProtocolsResponse)
{
    if (!tds__GetNetworkProtocolsResponse)
        return soap_closesock(soap);
    soap_default__tds__GetNetworkProtocolsResponse(soap, tds__GetNetworkProtocolsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetNetworkProtocolsResponse(soap, tds__GetNetworkProtocolsResponse, "tds:GetNetworkProtocolsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetNetworkProtocols(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkProtocols* tds__SetNetworkProtocols, struct _tds__SetNetworkProtocolsResponse* tds__SetNetworkProtocolsResponse)
{
    if (soap_send___tds__SetNetworkProtocols(soap, soap_endpoint, soap_action, tds__SetNetworkProtocols) || soap_recv___tds__SetNetworkProtocols(soap, tds__SetNetworkProtocolsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetNetworkProtocols(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkProtocols* tds__SetNetworkProtocols)
{
    struct __tds__SetNetworkProtocols soap_tmp___tds__SetNetworkProtocols;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkProtocols";
    soap_tmp___tds__SetNetworkProtocols.tds__SetNetworkProtocols = tds__SetNetworkProtocols;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols, "-tds:SetNetworkProtocols", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols, "-tds:SetNetworkProtocols", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetNetworkProtocols(struct soap* soap, struct _tds__SetNetworkProtocolsResponse* tds__SetNetworkProtocolsResponse)
{
    if (!tds__SetNetworkProtocolsResponse)
        return soap_closesock(soap);
    soap_default__tds__SetNetworkProtocolsResponse(soap, tds__SetNetworkProtocolsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetNetworkProtocolsResponse(soap, tds__SetNetworkProtocolsResponse, "tds:SetNetworkProtocolsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetNetworkDefaultGateway(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkDefaultGateway* tds__GetNetworkDefaultGateway, struct _tds__GetNetworkDefaultGatewayResponse* tds__GetNetworkDefaultGatewayResponse)
{
    if (soap_send___tds__GetNetworkDefaultGateway(soap, soap_endpoint, soap_action, tds__GetNetworkDefaultGateway) || soap_recv___tds__GetNetworkDefaultGateway(soap, tds__GetNetworkDefaultGatewayResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetNetworkDefaultGateway(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetNetworkDefaultGateway* tds__GetNetworkDefaultGateway)
{
    struct __tds__GetNetworkDefaultGateway soap_tmp___tds__GetNetworkDefaultGateway;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkDefaultGateway";
    soap_tmp___tds__GetNetworkDefaultGateway.tds__GetNetworkDefaultGateway = tds__GetNetworkDefaultGateway;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway, "-tds:GetNetworkDefaultGateway", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway, "-tds:GetNetworkDefaultGateway", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetNetworkDefaultGateway(struct soap* soap, struct _tds__GetNetworkDefaultGatewayResponse* tds__GetNetworkDefaultGatewayResponse)
{
    if (!tds__GetNetworkDefaultGatewayResponse)
        return soap_closesock(soap);
    soap_default__tds__GetNetworkDefaultGatewayResponse(soap, tds__GetNetworkDefaultGatewayResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetNetworkDefaultGatewayResponse(soap, tds__GetNetworkDefaultGatewayResponse, "tds:GetNetworkDefaultGatewayResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetNetworkDefaultGateway(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkDefaultGateway* tds__SetNetworkDefaultGateway, struct _tds__SetNetworkDefaultGatewayResponse* tds__SetNetworkDefaultGatewayResponse)
{
    if (soap_send___tds__SetNetworkDefaultGateway(soap, soap_endpoint, soap_action, tds__SetNetworkDefaultGateway) || soap_recv___tds__SetNetworkDefaultGateway(soap, tds__SetNetworkDefaultGatewayResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetNetworkDefaultGateway(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetNetworkDefaultGateway* tds__SetNetworkDefaultGateway)
{
    struct __tds__SetNetworkDefaultGateway soap_tmp___tds__SetNetworkDefaultGateway;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkDefaultGateway";
    soap_tmp___tds__SetNetworkDefaultGateway.tds__SetNetworkDefaultGateway = tds__SetNetworkDefaultGateway;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway, "-tds:SetNetworkDefaultGateway", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway, "-tds:SetNetworkDefaultGateway", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetNetworkDefaultGateway(struct soap* soap, struct _tds__SetNetworkDefaultGatewayResponse* tds__SetNetworkDefaultGatewayResponse)
{
    if (!tds__SetNetworkDefaultGatewayResponse)
        return soap_closesock(soap);
    soap_default__tds__SetNetworkDefaultGatewayResponse(soap, tds__SetNetworkDefaultGatewayResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetNetworkDefaultGatewayResponse(soap, tds__SetNetworkDefaultGatewayResponse, "tds:SetNetworkDefaultGatewayResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetZeroConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetZeroConfiguration* tds__GetZeroConfiguration, struct _tds__GetZeroConfigurationResponse* tds__GetZeroConfigurationResponse)
{
    if (soap_send___tds__GetZeroConfiguration(soap, soap_endpoint, soap_action, tds__GetZeroConfiguration) || soap_recv___tds__GetZeroConfiguration(soap, tds__GetZeroConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetZeroConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetZeroConfiguration* tds__GetZeroConfiguration)
{
    struct __tds__GetZeroConfiguration soap_tmp___tds__GetZeroConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetZeroConfiguration";
    soap_tmp___tds__GetZeroConfiguration.tds__GetZeroConfiguration = tds__GetZeroConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration, "-tds:GetZeroConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration, "-tds:GetZeroConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetZeroConfiguration(struct soap* soap, struct _tds__GetZeroConfigurationResponse* tds__GetZeroConfigurationResponse)
{
    if (!tds__GetZeroConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetZeroConfigurationResponse(soap, tds__GetZeroConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetZeroConfigurationResponse(soap, tds__GetZeroConfigurationResponse, "tds:GetZeroConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetZeroConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetZeroConfiguration* tds__SetZeroConfiguration, struct _tds__SetZeroConfigurationResponse* tds__SetZeroConfigurationResponse)
{
    if (soap_send___tds__SetZeroConfiguration(soap, soap_endpoint, soap_action, tds__SetZeroConfiguration) || soap_recv___tds__SetZeroConfiguration(soap, tds__SetZeroConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetZeroConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetZeroConfiguration* tds__SetZeroConfiguration)
{
    struct __tds__SetZeroConfiguration soap_tmp___tds__SetZeroConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetZeroConfiguration";
    soap_tmp___tds__SetZeroConfiguration.tds__SetZeroConfiguration = tds__SetZeroConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration, "-tds:SetZeroConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration, "-tds:SetZeroConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetZeroConfiguration(struct soap* soap, struct _tds__SetZeroConfigurationResponse* tds__SetZeroConfigurationResponse)
{
    if (!tds__SetZeroConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__SetZeroConfigurationResponse(soap, tds__SetZeroConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetZeroConfigurationResponse(soap, tds__SetZeroConfigurationResponse, "tds:SetZeroConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetIPAddressFilter* tds__GetIPAddressFilter, struct _tds__GetIPAddressFilterResponse* tds__GetIPAddressFilterResponse)
{
    if (soap_send___tds__GetIPAddressFilter(soap, soap_endpoint, soap_action, tds__GetIPAddressFilter) || soap_recv___tds__GetIPAddressFilter(soap, tds__GetIPAddressFilterResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetIPAddressFilter* tds__GetIPAddressFilter)
{
    struct __tds__GetIPAddressFilter soap_tmp___tds__GetIPAddressFilter;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetIPAddressFilter";
    soap_tmp___tds__GetIPAddressFilter.tds__GetIPAddressFilter = tds__GetIPAddressFilter;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter, "-tds:GetIPAddressFilter", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter, "-tds:GetIPAddressFilter", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetIPAddressFilter(struct soap* soap, struct _tds__GetIPAddressFilterResponse* tds__GetIPAddressFilterResponse)
{
    if (!tds__GetIPAddressFilterResponse)
        return soap_closesock(soap);
    soap_default__tds__GetIPAddressFilterResponse(soap, tds__GetIPAddressFilterResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetIPAddressFilterResponse(soap, tds__GetIPAddressFilterResponse, "tds:GetIPAddressFilterResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetIPAddressFilter* tds__SetIPAddressFilter, struct _tds__SetIPAddressFilterResponse* tds__SetIPAddressFilterResponse)
{
    if (soap_send___tds__SetIPAddressFilter(soap, soap_endpoint, soap_action, tds__SetIPAddressFilter) || soap_recv___tds__SetIPAddressFilter(soap, tds__SetIPAddressFilterResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetIPAddressFilter* tds__SetIPAddressFilter)
{
    struct __tds__SetIPAddressFilter soap_tmp___tds__SetIPAddressFilter;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetIPAddressFilter";
    soap_tmp___tds__SetIPAddressFilter.tds__SetIPAddressFilter = tds__SetIPAddressFilter;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter, "-tds:SetIPAddressFilter", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter, "-tds:SetIPAddressFilter", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetIPAddressFilter(struct soap* soap, struct _tds__SetIPAddressFilterResponse* tds__SetIPAddressFilterResponse)
{
    if (!tds__SetIPAddressFilterResponse)
        return soap_closesock(soap);
    soap_default__tds__SetIPAddressFilterResponse(soap, tds__SetIPAddressFilterResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetIPAddressFilterResponse(soap, tds__SetIPAddressFilterResponse, "tds:SetIPAddressFilterResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__AddIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__AddIPAddressFilter* tds__AddIPAddressFilter, struct _tds__AddIPAddressFilterResponse* tds__AddIPAddressFilterResponse)
{
    if (soap_send___tds__AddIPAddressFilter(soap, soap_endpoint, soap_action, tds__AddIPAddressFilter) || soap_recv___tds__AddIPAddressFilter(soap, tds__AddIPAddressFilterResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__AddIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__AddIPAddressFilter* tds__AddIPAddressFilter)
{
    struct __tds__AddIPAddressFilter soap_tmp___tds__AddIPAddressFilter;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/AddIPAddressFilter";
    soap_tmp___tds__AddIPAddressFilter.tds__AddIPAddressFilter = tds__AddIPAddressFilter;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter, "-tds:AddIPAddressFilter", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter, "-tds:AddIPAddressFilter", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__AddIPAddressFilter(struct soap* soap, struct _tds__AddIPAddressFilterResponse* tds__AddIPAddressFilterResponse)
{
    if (!tds__AddIPAddressFilterResponse)
        return soap_closesock(soap);
    soap_default__tds__AddIPAddressFilterResponse(soap, tds__AddIPAddressFilterResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__AddIPAddressFilterResponse(soap, tds__AddIPAddressFilterResponse, "tds:AddIPAddressFilterResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__RemoveIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RemoveIPAddressFilter* tds__RemoveIPAddressFilter, struct _tds__RemoveIPAddressFilterResponse* tds__RemoveIPAddressFilterResponse)
{
    if (soap_send___tds__RemoveIPAddressFilter(soap, soap_endpoint, soap_action, tds__RemoveIPAddressFilter) || soap_recv___tds__RemoveIPAddressFilter(soap, tds__RemoveIPAddressFilterResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__RemoveIPAddressFilter(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__RemoveIPAddressFilter* tds__RemoveIPAddressFilter)
{
    struct __tds__RemoveIPAddressFilter soap_tmp___tds__RemoveIPAddressFilter;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveIPAddressFilter";
    soap_tmp___tds__RemoveIPAddressFilter.tds__RemoveIPAddressFilter = tds__RemoveIPAddressFilter;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter, "-tds:RemoveIPAddressFilter", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter, "-tds:RemoveIPAddressFilter", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__RemoveIPAddressFilter(struct soap* soap, struct _tds__RemoveIPAddressFilterResponse* tds__RemoveIPAddressFilterResponse)
{
    if (!tds__RemoveIPAddressFilterResponse)
        return soap_closesock(soap);
    soap_default__tds__RemoveIPAddressFilterResponse(soap, tds__RemoveIPAddressFilterResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__RemoveIPAddressFilterResponse(soap, tds__RemoveIPAddressFilterResponse, "tds:RemoveIPAddressFilterResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetAccessPolicy(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetAccessPolicy* tds__GetAccessPolicy, struct _tds__GetAccessPolicyResponse* tds__GetAccessPolicyResponse)
{
    if (soap_send___tds__GetAccessPolicy(soap, soap_endpoint, soap_action, tds__GetAccessPolicy) || soap_recv___tds__GetAccessPolicy(soap, tds__GetAccessPolicyResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetAccessPolicy(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetAccessPolicy* tds__GetAccessPolicy)
{
    struct __tds__GetAccessPolicy soap_tmp___tds__GetAccessPolicy;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetAccessPolicy";
    soap_tmp___tds__GetAccessPolicy.tds__GetAccessPolicy = tds__GetAccessPolicy;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy, "-tds:GetAccessPolicy", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy, "-tds:GetAccessPolicy", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetAccessPolicy(struct soap* soap, struct _tds__GetAccessPolicyResponse* tds__GetAccessPolicyResponse)
{
    if (!tds__GetAccessPolicyResponse)
        return soap_closesock(soap);
    soap_default__tds__GetAccessPolicyResponse(soap, tds__GetAccessPolicyResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetAccessPolicyResponse(soap, tds__GetAccessPolicyResponse, "tds:GetAccessPolicyResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetAccessPolicy(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetAccessPolicy* tds__SetAccessPolicy, struct _tds__SetAccessPolicyResponse* tds__SetAccessPolicyResponse)
{
    if (soap_send___tds__SetAccessPolicy(soap, soap_endpoint, soap_action, tds__SetAccessPolicy) || soap_recv___tds__SetAccessPolicy(soap, tds__SetAccessPolicyResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetAccessPolicy(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetAccessPolicy* tds__SetAccessPolicy)
{
    struct __tds__SetAccessPolicy soap_tmp___tds__SetAccessPolicy;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetAccessPolicy";
    soap_tmp___tds__SetAccessPolicy.tds__SetAccessPolicy = tds__SetAccessPolicy;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy, "-tds:SetAccessPolicy", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy, "-tds:SetAccessPolicy", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetAccessPolicy(struct soap* soap, struct _tds__SetAccessPolicyResponse* tds__SetAccessPolicyResponse)
{
    if (!tds__SetAccessPolicyResponse)
        return soap_closesock(soap);
    soap_default__tds__SetAccessPolicyResponse(soap, tds__SetAccessPolicyResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetAccessPolicyResponse(soap, tds__SetAccessPolicyResponse, "tds:SetAccessPolicyResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__CreateCertificate(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateCertificate* tds__CreateCertificate, struct _tds__CreateCertificateResponse* tds__CreateCertificateResponse)
{
    if (soap_send___tds__CreateCertificate(soap, soap_endpoint, soap_action, tds__CreateCertificate) || soap_recv___tds__CreateCertificate(soap, tds__CreateCertificateResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__CreateCertificate(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateCertificate* tds__CreateCertificate)
{
    struct __tds__CreateCertificate soap_tmp___tds__CreateCertificate;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateCertificate";
    soap_tmp___tds__CreateCertificate.tds__CreateCertificate = tds__CreateCertificate;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate, "-tds:CreateCertificate", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate, "-tds:CreateCertificate", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__CreateCertificate(struct soap* soap, struct _tds__CreateCertificateResponse* tds__CreateCertificateResponse)
{
    if (!tds__CreateCertificateResponse)
        return soap_closesock(soap);
    soap_default__tds__CreateCertificateResponse(soap, tds__CreateCertificateResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__CreateCertificateResponse(soap, tds__CreateCertificateResponse, "tds:CreateCertificateResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificates* tds__GetCertificates, struct _tds__GetCertificatesResponse* tds__GetCertificatesResponse)
{
    if (soap_send___tds__GetCertificates(soap, soap_endpoint, soap_action, tds__GetCertificates) || soap_recv___tds__GetCertificates(soap, tds__GetCertificatesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificates* tds__GetCertificates)
{
    struct __tds__GetCertificates soap_tmp___tds__GetCertificates;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificates";
    soap_tmp___tds__GetCertificates.tds__GetCertificates = tds__GetCertificates;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates, "-tds:GetCertificates", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates, "-tds:GetCertificates", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetCertificates(struct soap* soap, struct _tds__GetCertificatesResponse* tds__GetCertificatesResponse)
{
    if (!tds__GetCertificatesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetCertificatesResponse(soap, tds__GetCertificatesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetCertificatesResponse(soap, tds__GetCertificatesResponse, "tds:GetCertificatesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetCertificatesStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificatesStatus* tds__GetCertificatesStatus, struct _tds__GetCertificatesStatusResponse* tds__GetCertificatesStatusResponse)
{
    if (soap_send___tds__GetCertificatesStatus(soap, soap_endpoint, soap_action, tds__GetCertificatesStatus) || soap_recv___tds__GetCertificatesStatus(soap, tds__GetCertificatesStatusResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetCertificatesStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificatesStatus* tds__GetCertificatesStatus)
{
    struct __tds__GetCertificatesStatus soap_tmp___tds__GetCertificatesStatus;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificatesStatus";
    soap_tmp___tds__GetCertificatesStatus.tds__GetCertificatesStatus = tds__GetCertificatesStatus;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus, "-tds:GetCertificatesStatus", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus, "-tds:GetCertificatesStatus", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetCertificatesStatus(struct soap* soap, struct _tds__GetCertificatesStatusResponse* tds__GetCertificatesStatusResponse)
{
    if (!tds__GetCertificatesStatusResponse)
        return soap_closesock(soap);
    soap_default__tds__GetCertificatesStatusResponse(soap, tds__GetCertificatesStatusResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetCertificatesStatusResponse(soap, tds__GetCertificatesStatusResponse, "tds:GetCertificatesStatusResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetCertificatesStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetCertificatesStatus* tds__SetCertificatesStatus, struct _tds__SetCertificatesStatusResponse* tds__SetCertificatesStatusResponse)
{
    if (soap_send___tds__SetCertificatesStatus(soap, soap_endpoint, soap_action, tds__SetCertificatesStatus) || soap_recv___tds__SetCertificatesStatus(soap, tds__SetCertificatesStatusResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetCertificatesStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetCertificatesStatus* tds__SetCertificatesStatus)
{
    struct __tds__SetCertificatesStatus soap_tmp___tds__SetCertificatesStatus;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetCertificatesStatus";
    soap_tmp___tds__SetCertificatesStatus.tds__SetCertificatesStatus = tds__SetCertificatesStatus;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus, "-tds:SetCertificatesStatus", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus, "-tds:SetCertificatesStatus", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetCertificatesStatus(struct soap* soap, struct _tds__SetCertificatesStatusResponse* tds__SetCertificatesStatusResponse)
{
    if (!tds__SetCertificatesStatusResponse)
        return soap_closesock(soap);
    soap_default__tds__SetCertificatesStatusResponse(soap, tds__SetCertificatesStatusResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetCertificatesStatusResponse(soap, tds__SetCertificatesStatusResponse, "tds:SetCertificatesStatusResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__DeleteCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteCertificates* tds__DeleteCertificates, struct _tds__DeleteCertificatesResponse* tds__DeleteCertificatesResponse)
{
    if (soap_send___tds__DeleteCertificates(soap, soap_endpoint, soap_action, tds__DeleteCertificates) || soap_recv___tds__DeleteCertificates(soap, tds__DeleteCertificatesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__DeleteCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteCertificates* tds__DeleteCertificates)
{
    struct __tds__DeleteCertificates soap_tmp___tds__DeleteCertificates;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteCertificates";
    soap_tmp___tds__DeleteCertificates.tds__DeleteCertificates = tds__DeleteCertificates;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates, "-tds:DeleteCertificates", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates, "-tds:DeleteCertificates", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__DeleteCertificates(struct soap* soap, struct _tds__DeleteCertificatesResponse* tds__DeleteCertificatesResponse)
{
    if (!tds__DeleteCertificatesResponse)
        return soap_closesock(soap);
    soap_default__tds__DeleteCertificatesResponse(soap, tds__DeleteCertificatesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__DeleteCertificatesResponse(soap, tds__DeleteCertificatesResponse, "tds:DeleteCertificatesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetPkcs10Request(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetPkcs10Request* tds__GetPkcs10Request, struct _tds__GetPkcs10RequestResponse* tds__GetPkcs10RequestResponse)
{
    if (soap_send___tds__GetPkcs10Request(soap, soap_endpoint, soap_action, tds__GetPkcs10Request) || soap_recv___tds__GetPkcs10Request(soap, tds__GetPkcs10RequestResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetPkcs10Request(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetPkcs10Request* tds__GetPkcs10Request)
{
    struct __tds__GetPkcs10Request soap_tmp___tds__GetPkcs10Request;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetPkcs10Request";
    soap_tmp___tds__GetPkcs10Request.tds__GetPkcs10Request = tds__GetPkcs10Request;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request, "-tds:GetPkcs10Request", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request, "-tds:GetPkcs10Request", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetPkcs10Request(struct soap* soap, struct _tds__GetPkcs10RequestResponse* tds__GetPkcs10RequestResponse)
{
    if (!tds__GetPkcs10RequestResponse)
        return soap_closesock(soap);
    soap_default__tds__GetPkcs10RequestResponse(soap, tds__GetPkcs10RequestResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetPkcs10RequestResponse(soap, tds__GetPkcs10RequestResponse, "tds:GetPkcs10RequestResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__LoadCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCertificates* tds__LoadCertificates, struct _tds__LoadCertificatesResponse* tds__LoadCertificatesResponse)
{
    if (soap_send___tds__LoadCertificates(soap, soap_endpoint, soap_action, tds__LoadCertificates) || soap_recv___tds__LoadCertificates(soap, tds__LoadCertificatesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__LoadCertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCertificates* tds__LoadCertificates)
{
    struct __tds__LoadCertificates soap_tmp___tds__LoadCertificates;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificates";
    soap_tmp___tds__LoadCertificates.tds__LoadCertificates = tds__LoadCertificates;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates, "-tds:LoadCertificates", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates, "-tds:LoadCertificates", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__LoadCertificates(struct soap* soap, struct _tds__LoadCertificatesResponse* tds__LoadCertificatesResponse)
{
    if (!tds__LoadCertificatesResponse)
        return soap_closesock(soap);
    soap_default__tds__LoadCertificatesResponse(soap, tds__LoadCertificatesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__LoadCertificatesResponse(soap, tds__LoadCertificatesResponse, "tds:LoadCertificatesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetClientCertificateMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetClientCertificateMode* tds__GetClientCertificateMode, struct _tds__GetClientCertificateModeResponse* tds__GetClientCertificateModeResponse)
{
    if (soap_send___tds__GetClientCertificateMode(soap, soap_endpoint, soap_action, tds__GetClientCertificateMode) || soap_recv___tds__GetClientCertificateMode(soap, tds__GetClientCertificateModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetClientCertificateMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetClientCertificateMode* tds__GetClientCertificateMode)
{
    struct __tds__GetClientCertificateMode soap_tmp___tds__GetClientCertificateMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetClientCertificateMode";
    soap_tmp___tds__GetClientCertificateMode.tds__GetClientCertificateMode = tds__GetClientCertificateMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode, "-tds:GetClientCertificateMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode, "-tds:GetClientCertificateMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetClientCertificateMode(struct soap* soap, struct _tds__GetClientCertificateModeResponse* tds__GetClientCertificateModeResponse)
{
    if (!tds__GetClientCertificateModeResponse)
        return soap_closesock(soap);
    soap_default__tds__GetClientCertificateModeResponse(soap, tds__GetClientCertificateModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetClientCertificateModeResponse(soap, tds__GetClientCertificateModeResponse, "tds:GetClientCertificateModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetClientCertificateMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetClientCertificateMode* tds__SetClientCertificateMode, struct _tds__SetClientCertificateModeResponse* tds__SetClientCertificateModeResponse)
{
    if (soap_send___tds__SetClientCertificateMode(soap, soap_endpoint, soap_action, tds__SetClientCertificateMode) || soap_recv___tds__SetClientCertificateMode(soap, tds__SetClientCertificateModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetClientCertificateMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetClientCertificateMode* tds__SetClientCertificateMode)
{
    struct __tds__SetClientCertificateMode soap_tmp___tds__SetClientCertificateMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetClientCertificateMode";
    soap_tmp___tds__SetClientCertificateMode.tds__SetClientCertificateMode = tds__SetClientCertificateMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode, "-tds:SetClientCertificateMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode, "-tds:SetClientCertificateMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetClientCertificateMode(struct soap* soap, struct _tds__SetClientCertificateModeResponse* tds__SetClientCertificateModeResponse)
{
    if (!tds__SetClientCertificateModeResponse)
        return soap_closesock(soap);
    soap_default__tds__SetClientCertificateModeResponse(soap, tds__SetClientCertificateModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetClientCertificateModeResponse(soap, tds__SetClientCertificateModeResponse, "tds:SetClientCertificateModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetRelayOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRelayOutputs* tds__GetRelayOutputs, struct _tds__GetRelayOutputsResponse* tds__GetRelayOutputsResponse)
{
    if (soap_send___tds__GetRelayOutputs(soap, soap_endpoint, soap_action, tds__GetRelayOutputs) || soap_recv___tds__GetRelayOutputs(soap, tds__GetRelayOutputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetRelayOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRelayOutputs* tds__GetRelayOutputs)
{
    struct __tds__GetRelayOutputs soap_tmp___tds__GetRelayOutputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRelayOutputs";
    soap_tmp___tds__GetRelayOutputs.tds__GetRelayOutputs = tds__GetRelayOutputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs, "-tds:GetRelayOutputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs, "-tds:GetRelayOutputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetRelayOutputs(struct soap* soap, struct _tds__GetRelayOutputsResponse* tds__GetRelayOutputsResponse)
{
    if (!tds__GetRelayOutputsResponse)
        return soap_closesock(soap);
    soap_default__tds__GetRelayOutputsResponse(soap, tds__GetRelayOutputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetRelayOutputsResponse(soap, tds__GetRelayOutputsResponse, "tds:GetRelayOutputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetRelayOutputSettings(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputSettings* tds__SetRelayOutputSettings, struct _tds__SetRelayOutputSettingsResponse* tds__SetRelayOutputSettingsResponse)
{
    if (soap_send___tds__SetRelayOutputSettings(soap, soap_endpoint, soap_action, tds__SetRelayOutputSettings) || soap_recv___tds__SetRelayOutputSettings(soap, tds__SetRelayOutputSettingsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetRelayOutputSettings(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputSettings* tds__SetRelayOutputSettings)
{
    struct __tds__SetRelayOutputSettings soap_tmp___tds__SetRelayOutputSettings;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputSettings";
    soap_tmp___tds__SetRelayOutputSettings.tds__SetRelayOutputSettings = tds__SetRelayOutputSettings;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings, "-tds:SetRelayOutputSettings", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings, "-tds:SetRelayOutputSettings", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetRelayOutputSettings(struct soap* soap, struct _tds__SetRelayOutputSettingsResponse* tds__SetRelayOutputSettingsResponse)
{
    if (!tds__SetRelayOutputSettingsResponse)
        return soap_closesock(soap);
    soap_default__tds__SetRelayOutputSettingsResponse(soap, tds__SetRelayOutputSettingsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetRelayOutputSettingsResponse(soap, tds__SetRelayOutputSettingsResponse, "tds:SetRelayOutputSettingsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetRelayOutputState(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputState* tds__SetRelayOutputState, struct _tds__SetRelayOutputStateResponse* tds__SetRelayOutputStateResponse)
{
    if (soap_send___tds__SetRelayOutputState(soap, soap_endpoint, soap_action, tds__SetRelayOutputState) || soap_recv___tds__SetRelayOutputState(soap, tds__SetRelayOutputStateResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetRelayOutputState(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputState* tds__SetRelayOutputState)
{
    struct __tds__SetRelayOutputState soap_tmp___tds__SetRelayOutputState;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputState";
    soap_tmp___tds__SetRelayOutputState.tds__SetRelayOutputState = tds__SetRelayOutputState;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState, "-tds:SetRelayOutputState", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState, "-tds:SetRelayOutputState", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetRelayOutputState(struct soap* soap, struct _tds__SetRelayOutputStateResponse* tds__SetRelayOutputStateResponse)
{
    if (!tds__SetRelayOutputStateResponse)
        return soap_closesock(soap);
    soap_default__tds__SetRelayOutputStateResponse(soap, tds__SetRelayOutputStateResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetRelayOutputStateResponse(soap, tds__SetRelayOutputStateResponse, "tds:SetRelayOutputStateResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SendAuxiliaryCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SendAuxiliaryCommand* tds__SendAuxiliaryCommand, struct _tds__SendAuxiliaryCommandResponse* tds__SendAuxiliaryCommandResponse)
{
    if (soap_send___tds__SendAuxiliaryCommand(soap, soap_endpoint, soap_action, tds__SendAuxiliaryCommand) || soap_recv___tds__SendAuxiliaryCommand(soap, tds__SendAuxiliaryCommandResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SendAuxiliaryCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SendAuxiliaryCommand* tds__SendAuxiliaryCommand)
{
    struct __tds__SendAuxiliaryCommand soap_tmp___tds__SendAuxiliaryCommand;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SendAuxiliaryCommand";
    soap_tmp___tds__SendAuxiliaryCommand.tds__SendAuxiliaryCommand = tds__SendAuxiliaryCommand;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand, "-tds:SendAuxiliaryCommand", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand, "-tds:SendAuxiliaryCommand", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SendAuxiliaryCommand(struct soap* soap, struct _tds__SendAuxiliaryCommandResponse* tds__SendAuxiliaryCommandResponse)
{
    if (!tds__SendAuxiliaryCommandResponse)
        return soap_closesock(soap);
    soap_default__tds__SendAuxiliaryCommandResponse(soap, tds__SendAuxiliaryCommandResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SendAuxiliaryCommandResponse(soap, tds__SendAuxiliaryCommandResponse, "tds:SendAuxiliaryCommandResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetCACertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCACertificates* tds__GetCACertificates, struct _tds__GetCACertificatesResponse* tds__GetCACertificatesResponse)
{
    if (soap_send___tds__GetCACertificates(soap, soap_endpoint, soap_action, tds__GetCACertificates) || soap_recv___tds__GetCACertificates(soap, tds__GetCACertificatesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetCACertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCACertificates* tds__GetCACertificates)
{
    struct __tds__GetCACertificates soap_tmp___tds__GetCACertificates;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCACertificates";
    soap_tmp___tds__GetCACertificates.tds__GetCACertificates = tds__GetCACertificates;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates, "-tds:GetCACertificates", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates, "-tds:GetCACertificates", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetCACertificates(struct soap* soap, struct _tds__GetCACertificatesResponse* tds__GetCACertificatesResponse)
{
    if (!tds__GetCACertificatesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetCACertificatesResponse(soap, tds__GetCACertificatesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetCACertificatesResponse(soap, tds__GetCACertificatesResponse, "tds:GetCACertificatesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__LoadCertificateWithPrivateKey(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCertificateWithPrivateKey* tds__LoadCertificateWithPrivateKey, struct _tds__LoadCertificateWithPrivateKeyResponse* tds__LoadCertificateWithPrivateKeyResponse)
{
    if (soap_send___tds__LoadCertificateWithPrivateKey(soap, soap_endpoint, soap_action, tds__LoadCertificateWithPrivateKey) || soap_recv___tds__LoadCertificateWithPrivateKey(soap, tds__LoadCertificateWithPrivateKeyResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__LoadCertificateWithPrivateKey(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCertificateWithPrivateKey* tds__LoadCertificateWithPrivateKey)
{
    struct __tds__LoadCertificateWithPrivateKey soap_tmp___tds__LoadCertificateWithPrivateKey;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificateWithPrivateKey";
    soap_tmp___tds__LoadCertificateWithPrivateKey.tds__LoadCertificateWithPrivateKey = tds__LoadCertificateWithPrivateKey;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey, "-tds:LoadCertificateWithPrivateKey", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey, "-tds:LoadCertificateWithPrivateKey", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__LoadCertificateWithPrivateKey(struct soap* soap, struct _tds__LoadCertificateWithPrivateKeyResponse* tds__LoadCertificateWithPrivateKeyResponse)
{
    if (!tds__LoadCertificateWithPrivateKeyResponse)
        return soap_closesock(soap);
    soap_default__tds__LoadCertificateWithPrivateKeyResponse(soap, tds__LoadCertificateWithPrivateKeyResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__LoadCertificateWithPrivateKeyResponse(soap, tds__LoadCertificateWithPrivateKeyResponse, "tds:LoadCertificateWithPrivateKeyResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetCertificateInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificateInformation* tds__GetCertificateInformation, struct _tds__GetCertificateInformationResponse* tds__GetCertificateInformationResponse)
{
    if (soap_send___tds__GetCertificateInformation(soap, soap_endpoint, soap_action, tds__GetCertificateInformation) || soap_recv___tds__GetCertificateInformation(soap, tds__GetCertificateInformationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetCertificateInformation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetCertificateInformation* tds__GetCertificateInformation)
{
    struct __tds__GetCertificateInformation soap_tmp___tds__GetCertificateInformation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificateInformation";
    soap_tmp___tds__GetCertificateInformation.tds__GetCertificateInformation = tds__GetCertificateInformation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation, "-tds:GetCertificateInformation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation, "-tds:GetCertificateInformation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetCertificateInformation(struct soap* soap, struct _tds__GetCertificateInformationResponse* tds__GetCertificateInformationResponse)
{
    if (!tds__GetCertificateInformationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetCertificateInformationResponse(soap, tds__GetCertificateInformationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetCertificateInformationResponse(soap, tds__GetCertificateInformationResponse, "tds:GetCertificateInformationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__LoadCACertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCACertificates* tds__LoadCACertificates, struct _tds__LoadCACertificatesResponse* tds__LoadCACertificatesResponse)
{
    if (soap_send___tds__LoadCACertificates(soap, soap_endpoint, soap_action, tds__LoadCACertificates) || soap_recv___tds__LoadCACertificates(soap, tds__LoadCACertificatesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__LoadCACertificates(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__LoadCACertificates* tds__LoadCACertificates)
{
    struct __tds__LoadCACertificates soap_tmp___tds__LoadCACertificates;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCACertificates";
    soap_tmp___tds__LoadCACertificates.tds__LoadCACertificates = tds__LoadCACertificates;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates, "-tds:LoadCACertificates", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates, "-tds:LoadCACertificates", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__LoadCACertificates(struct soap* soap, struct _tds__LoadCACertificatesResponse* tds__LoadCACertificatesResponse)
{
    if (!tds__LoadCACertificatesResponse)
        return soap_closesock(soap);
    soap_default__tds__LoadCACertificatesResponse(soap, tds__LoadCACertificatesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__LoadCACertificatesResponse(soap, tds__LoadCACertificatesResponse, "tds:LoadCACertificatesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__CreateDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateDot1XConfiguration* tds__CreateDot1XConfiguration, struct _tds__CreateDot1XConfigurationResponse* tds__CreateDot1XConfigurationResponse)
{
    if (soap_send___tds__CreateDot1XConfiguration(soap, soap_endpoint, soap_action, tds__CreateDot1XConfiguration) || soap_recv___tds__CreateDot1XConfiguration(soap, tds__CreateDot1XConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__CreateDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateDot1XConfiguration* tds__CreateDot1XConfiguration)
{
    struct __tds__CreateDot1XConfiguration soap_tmp___tds__CreateDot1XConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateDot1XConfiguration";
    soap_tmp___tds__CreateDot1XConfiguration.tds__CreateDot1XConfiguration = tds__CreateDot1XConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration, "-tds:CreateDot1XConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration, "-tds:CreateDot1XConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__CreateDot1XConfiguration(struct soap* soap, struct _tds__CreateDot1XConfigurationResponse* tds__CreateDot1XConfigurationResponse)
{
    if (!tds__CreateDot1XConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__CreateDot1XConfigurationResponse(soap, tds__CreateDot1XConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__CreateDot1XConfigurationResponse(soap, tds__CreateDot1XConfigurationResponse, "tds:CreateDot1XConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDot1XConfiguration* tds__SetDot1XConfiguration, struct _tds__SetDot1XConfigurationResponse* tds__SetDot1XConfigurationResponse)
{
    if (soap_send___tds__SetDot1XConfiguration(soap, soap_endpoint, soap_action, tds__SetDot1XConfiguration) || soap_recv___tds__SetDot1XConfiguration(soap, tds__SetDot1XConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetDot1XConfiguration* tds__SetDot1XConfiguration)
{
    struct __tds__SetDot1XConfiguration soap_tmp___tds__SetDot1XConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDot1XConfiguration";
    soap_tmp___tds__SetDot1XConfiguration.tds__SetDot1XConfiguration = tds__SetDot1XConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration, "-tds:SetDot1XConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration, "-tds:SetDot1XConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetDot1XConfiguration(struct soap* soap, struct _tds__SetDot1XConfigurationResponse* tds__SetDot1XConfigurationResponse)
{
    if (!tds__SetDot1XConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__SetDot1XConfigurationResponse(soap, tds__SetDot1XConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetDot1XConfigurationResponse(soap, tds__SetDot1XConfigurationResponse, "tds:SetDot1XConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot1XConfiguration* tds__GetDot1XConfiguration, struct _tds__GetDot1XConfigurationResponse* tds__GetDot1XConfigurationResponse)
{
    if (soap_send___tds__GetDot1XConfiguration(soap, soap_endpoint, soap_action, tds__GetDot1XConfiguration) || soap_recv___tds__GetDot1XConfiguration(soap, tds__GetDot1XConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot1XConfiguration* tds__GetDot1XConfiguration)
{
    struct __tds__GetDot1XConfiguration soap_tmp___tds__GetDot1XConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfiguration";
    soap_tmp___tds__GetDot1XConfiguration.tds__GetDot1XConfiguration = tds__GetDot1XConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration, "-tds:GetDot1XConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration, "-tds:GetDot1XConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDot1XConfiguration(struct soap* soap, struct _tds__GetDot1XConfigurationResponse* tds__GetDot1XConfigurationResponse)
{
    if (!tds__GetDot1XConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDot1XConfigurationResponse(soap, tds__GetDot1XConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDot1XConfigurationResponse(soap, tds__GetDot1XConfigurationResponse, "tds:GetDot1XConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDot1XConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot1XConfigurations* tds__GetDot1XConfigurations, struct _tds__GetDot1XConfigurationsResponse* tds__GetDot1XConfigurationsResponse)
{
    if (soap_send___tds__GetDot1XConfigurations(soap, soap_endpoint, soap_action, tds__GetDot1XConfigurations) || soap_recv___tds__GetDot1XConfigurations(soap, tds__GetDot1XConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDot1XConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot1XConfigurations* tds__GetDot1XConfigurations)
{
    struct __tds__GetDot1XConfigurations soap_tmp___tds__GetDot1XConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfigurations";
    soap_tmp___tds__GetDot1XConfigurations.tds__GetDot1XConfigurations = tds__GetDot1XConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations, "-tds:GetDot1XConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations, "-tds:GetDot1XConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDot1XConfigurations(struct soap* soap, struct _tds__GetDot1XConfigurationsResponse* tds__GetDot1XConfigurationsResponse)
{
    if (!tds__GetDot1XConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDot1XConfigurationsResponse(soap, tds__GetDot1XConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDot1XConfigurationsResponse(soap, tds__GetDot1XConfigurationsResponse, "tds:GetDot1XConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__DeleteDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteDot1XConfiguration* tds__DeleteDot1XConfiguration, struct _tds__DeleteDot1XConfigurationResponse* tds__DeleteDot1XConfigurationResponse)
{
    if (soap_send___tds__DeleteDot1XConfiguration(soap, soap_endpoint, soap_action, tds__DeleteDot1XConfiguration) || soap_recv___tds__DeleteDot1XConfiguration(soap, tds__DeleteDot1XConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__DeleteDot1XConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteDot1XConfiguration* tds__DeleteDot1XConfiguration)
{
    struct __tds__DeleteDot1XConfiguration soap_tmp___tds__DeleteDot1XConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteDot1XConfiguration";
    soap_tmp___tds__DeleteDot1XConfiguration.tds__DeleteDot1XConfiguration = tds__DeleteDot1XConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration, "-tds:DeleteDot1XConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration, "-tds:DeleteDot1XConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__DeleteDot1XConfiguration(struct soap* soap, struct _tds__DeleteDot1XConfigurationResponse* tds__DeleteDot1XConfigurationResponse)
{
    if (!tds__DeleteDot1XConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__DeleteDot1XConfigurationResponse(soap, tds__DeleteDot1XConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__DeleteDot1XConfigurationResponse(soap, tds__DeleteDot1XConfigurationResponse, "tds:DeleteDot1XConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDot11Capabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot11Capabilities* tds__GetDot11Capabilities, struct _tds__GetDot11CapabilitiesResponse* tds__GetDot11CapabilitiesResponse)
{
    if (soap_send___tds__GetDot11Capabilities(soap, soap_endpoint, soap_action, tds__GetDot11Capabilities) || soap_recv___tds__GetDot11Capabilities(soap, tds__GetDot11CapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDot11Capabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot11Capabilities* tds__GetDot11Capabilities)
{
    struct __tds__GetDot11Capabilities soap_tmp___tds__GetDot11Capabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Capabilities";
    soap_tmp___tds__GetDot11Capabilities.tds__GetDot11Capabilities = tds__GetDot11Capabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities, "-tds:GetDot11Capabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities, "-tds:GetDot11Capabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDot11Capabilities(struct soap* soap, struct _tds__GetDot11CapabilitiesResponse* tds__GetDot11CapabilitiesResponse)
{
    if (!tds__GetDot11CapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDot11CapabilitiesResponse(soap, tds__GetDot11CapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDot11CapabilitiesResponse(soap, tds__GetDot11CapabilitiesResponse, "tds:GetDot11CapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetDot11Status(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot11Status* tds__GetDot11Status, struct _tds__GetDot11StatusResponse* tds__GetDot11StatusResponse)
{
    if (soap_send___tds__GetDot11Status(soap, soap_endpoint, soap_action, tds__GetDot11Status) || soap_recv___tds__GetDot11Status(soap, tds__GetDot11StatusResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetDot11Status(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetDot11Status* tds__GetDot11Status)
{
    struct __tds__GetDot11Status soap_tmp___tds__GetDot11Status;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Status";
    soap_tmp___tds__GetDot11Status.tds__GetDot11Status = tds__GetDot11Status;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status, "-tds:GetDot11Status", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status, "-tds:GetDot11Status", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetDot11Status(struct soap* soap, struct _tds__GetDot11StatusResponse* tds__GetDot11StatusResponse)
{
    if (!tds__GetDot11StatusResponse)
        return soap_closesock(soap);
    soap_default__tds__GetDot11StatusResponse(soap, tds__GetDot11StatusResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetDot11StatusResponse(soap, tds__GetDot11StatusResponse, "tds:GetDot11StatusResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__ScanAvailableDot11Networks(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__ScanAvailableDot11Networks* tds__ScanAvailableDot11Networks, struct _tds__ScanAvailableDot11NetworksResponse* tds__ScanAvailableDot11NetworksResponse)
{
    if (soap_send___tds__ScanAvailableDot11Networks(soap, soap_endpoint, soap_action, tds__ScanAvailableDot11Networks) || soap_recv___tds__ScanAvailableDot11Networks(soap, tds__ScanAvailableDot11NetworksResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__ScanAvailableDot11Networks(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__ScanAvailableDot11Networks* tds__ScanAvailableDot11Networks)
{
    struct __tds__ScanAvailableDot11Networks soap_tmp___tds__ScanAvailableDot11Networks;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/ScanAvailableDot11Networks";
    soap_tmp___tds__ScanAvailableDot11Networks.tds__ScanAvailableDot11Networks = tds__ScanAvailableDot11Networks;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks, "-tds:ScanAvailableDot11Networks", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks, "-tds:ScanAvailableDot11Networks", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__ScanAvailableDot11Networks(struct soap* soap, struct _tds__ScanAvailableDot11NetworksResponse* tds__ScanAvailableDot11NetworksResponse)
{
    if (!tds__ScanAvailableDot11NetworksResponse)
        return soap_closesock(soap);
    soap_default__tds__ScanAvailableDot11NetworksResponse(soap, tds__ScanAvailableDot11NetworksResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__ScanAvailableDot11NetworksResponse(soap, tds__ScanAvailableDot11NetworksResponse, "tds:ScanAvailableDot11NetworksResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetSystemUris(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemUris* tds__GetSystemUris, struct _tds__GetSystemUrisResponse* tds__GetSystemUrisResponse)
{
    if (soap_send___tds__GetSystemUris(soap, soap_endpoint, soap_action, tds__GetSystemUris) || soap_recv___tds__GetSystemUris(soap, tds__GetSystemUrisResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetSystemUris(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetSystemUris* tds__GetSystemUris)
{
    struct __tds__GetSystemUris soap_tmp___tds__GetSystemUris;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemUris";
    soap_tmp___tds__GetSystemUris.tds__GetSystemUris = tds__GetSystemUris;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris, "-tds:GetSystemUris", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris, "-tds:GetSystemUris", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetSystemUris(struct soap* soap, struct _tds__GetSystemUrisResponse* tds__GetSystemUrisResponse)
{
    if (!tds__GetSystemUrisResponse)
        return soap_closesock(soap);
    soap_default__tds__GetSystemUrisResponse(soap, tds__GetSystemUrisResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetSystemUrisResponse(soap, tds__GetSystemUrisResponse, "tds:GetSystemUrisResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__StartFirmwareUpgrade(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__StartFirmwareUpgrade* tds__StartFirmwareUpgrade, struct _tds__StartFirmwareUpgradeResponse* tds__StartFirmwareUpgradeResponse)
{
    if (soap_send___tds__StartFirmwareUpgrade(soap, soap_endpoint, soap_action, tds__StartFirmwareUpgrade) || soap_recv___tds__StartFirmwareUpgrade(soap, tds__StartFirmwareUpgradeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__StartFirmwareUpgrade(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__StartFirmwareUpgrade* tds__StartFirmwareUpgrade)
{
    struct __tds__StartFirmwareUpgrade soap_tmp___tds__StartFirmwareUpgrade;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/StartFirmwareUpgrade";
    soap_tmp___tds__StartFirmwareUpgrade.tds__StartFirmwareUpgrade = tds__StartFirmwareUpgrade;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade, "-tds:StartFirmwareUpgrade", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade, "-tds:StartFirmwareUpgrade", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__StartFirmwareUpgrade(struct soap* soap, struct _tds__StartFirmwareUpgradeResponse* tds__StartFirmwareUpgradeResponse)
{
    if (!tds__StartFirmwareUpgradeResponse)
        return soap_closesock(soap);
    soap_default__tds__StartFirmwareUpgradeResponse(soap, tds__StartFirmwareUpgradeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__StartFirmwareUpgradeResponse(soap, tds__StartFirmwareUpgradeResponse, "tds:StartFirmwareUpgradeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__StartSystemRestore(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__StartSystemRestore* tds__StartSystemRestore, struct _tds__StartSystemRestoreResponse* tds__StartSystemRestoreResponse)
{
    if (soap_send___tds__StartSystemRestore(soap, soap_endpoint, soap_action, tds__StartSystemRestore) || soap_recv___tds__StartSystemRestore(soap, tds__StartSystemRestoreResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__StartSystemRestore(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__StartSystemRestore* tds__StartSystemRestore)
{
    struct __tds__StartSystemRestore soap_tmp___tds__StartSystemRestore;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/StartSystemRestore";
    soap_tmp___tds__StartSystemRestore.tds__StartSystemRestore = tds__StartSystemRestore;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore, "-tds:StartSystemRestore", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore, "-tds:StartSystemRestore", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__StartSystemRestore(struct soap* soap, struct _tds__StartSystemRestoreResponse* tds__StartSystemRestoreResponse)
{
    if (!tds__StartSystemRestoreResponse)
        return soap_closesock(soap);
    soap_default__tds__StartSystemRestoreResponse(soap, tds__StartSystemRestoreResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__StartSystemRestoreResponse(soap, tds__StartSystemRestoreResponse, "tds:StartSystemRestoreResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetStorageConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetStorageConfigurations* tds__GetStorageConfigurations, struct _tds__GetStorageConfigurationsResponse* tds__GetStorageConfigurationsResponse)
{
    if (soap_send___tds__GetStorageConfigurations(soap, soap_endpoint, soap_action, tds__GetStorageConfigurations) || soap_recv___tds__GetStorageConfigurations(soap, tds__GetStorageConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetStorageConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetStorageConfigurations* tds__GetStorageConfigurations)
{
    struct __tds__GetStorageConfigurations soap_tmp___tds__GetStorageConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetStorageConfigurations";
    soap_tmp___tds__GetStorageConfigurations.tds__GetStorageConfigurations = tds__GetStorageConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetStorageConfigurations(soap, &soap_tmp___tds__GetStorageConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetStorageConfigurations(soap, &soap_tmp___tds__GetStorageConfigurations, "-tds:GetStorageConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetStorageConfigurations(soap, &soap_tmp___tds__GetStorageConfigurations, "-tds:GetStorageConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetStorageConfigurations(struct soap* soap, struct _tds__GetStorageConfigurationsResponse* tds__GetStorageConfigurationsResponse)
{
    if (!tds__GetStorageConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__tds__GetStorageConfigurationsResponse(soap, tds__GetStorageConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetStorageConfigurationsResponse(soap, tds__GetStorageConfigurationsResponse, "tds:GetStorageConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__CreateStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateStorageConfiguration* tds__CreateStorageConfiguration, struct _tds__CreateStorageConfigurationResponse* tds__CreateStorageConfigurationResponse)
{
    if (soap_send___tds__CreateStorageConfiguration(soap, soap_endpoint, soap_action, tds__CreateStorageConfiguration) || soap_recv___tds__CreateStorageConfiguration(soap, tds__CreateStorageConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__CreateStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__CreateStorageConfiguration* tds__CreateStorageConfiguration)
{
    struct __tds__CreateStorageConfiguration soap_tmp___tds__CreateStorageConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateStorageConfiguration";
    soap_tmp___tds__CreateStorageConfiguration.tds__CreateStorageConfiguration = tds__CreateStorageConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__CreateStorageConfiguration(soap, &soap_tmp___tds__CreateStorageConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__CreateStorageConfiguration(soap, &soap_tmp___tds__CreateStorageConfiguration, "-tds:CreateStorageConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__CreateStorageConfiguration(soap, &soap_tmp___tds__CreateStorageConfiguration, "-tds:CreateStorageConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__CreateStorageConfiguration(struct soap* soap, struct _tds__CreateStorageConfigurationResponse* tds__CreateStorageConfigurationResponse)
{
    if (!tds__CreateStorageConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__CreateStorageConfigurationResponse(soap, tds__CreateStorageConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__CreateStorageConfigurationResponse(soap, tds__CreateStorageConfigurationResponse, "tds:CreateStorageConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetStorageConfiguration* tds__GetStorageConfiguration, struct _tds__GetStorageConfigurationResponse* tds__GetStorageConfigurationResponse)
{
    if (soap_send___tds__GetStorageConfiguration(soap, soap_endpoint, soap_action, tds__GetStorageConfiguration) || soap_recv___tds__GetStorageConfiguration(soap, tds__GetStorageConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetStorageConfiguration* tds__GetStorageConfiguration)
{
    struct __tds__GetStorageConfiguration soap_tmp___tds__GetStorageConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetStorageConfiguration";
    soap_tmp___tds__GetStorageConfiguration.tds__GetStorageConfiguration = tds__GetStorageConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetStorageConfiguration(soap, &soap_tmp___tds__GetStorageConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetStorageConfiguration(soap, &soap_tmp___tds__GetStorageConfiguration, "-tds:GetStorageConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetStorageConfiguration(soap, &soap_tmp___tds__GetStorageConfiguration, "-tds:GetStorageConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetStorageConfiguration(struct soap* soap, struct _tds__GetStorageConfigurationResponse* tds__GetStorageConfigurationResponse)
{
    if (!tds__GetStorageConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetStorageConfigurationResponse(soap, tds__GetStorageConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetStorageConfigurationResponse(soap, tds__GetStorageConfigurationResponse, "tds:GetStorageConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetStorageConfiguration* tds__SetStorageConfiguration, struct _tds__SetStorageConfigurationResponse* tds__SetStorageConfigurationResponse)
{
    if (soap_send___tds__SetStorageConfiguration(soap, soap_endpoint, soap_action, tds__SetStorageConfiguration) || soap_recv___tds__SetStorageConfiguration(soap, tds__SetStorageConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetStorageConfiguration* tds__SetStorageConfiguration)
{
    struct __tds__SetStorageConfiguration soap_tmp___tds__SetStorageConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetStorageConfiguration";
    soap_tmp___tds__SetStorageConfiguration.tds__SetStorageConfiguration = tds__SetStorageConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetStorageConfiguration(soap, &soap_tmp___tds__SetStorageConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetStorageConfiguration(soap, &soap_tmp___tds__SetStorageConfiguration, "-tds:SetStorageConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetStorageConfiguration(soap, &soap_tmp___tds__SetStorageConfiguration, "-tds:SetStorageConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetStorageConfiguration(struct soap* soap, struct _tds__SetStorageConfigurationResponse* tds__SetStorageConfigurationResponse)
{
    if (!tds__SetStorageConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__SetStorageConfigurationResponse(soap, tds__SetStorageConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetStorageConfigurationResponse(soap, tds__SetStorageConfigurationResponse, "tds:SetStorageConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__DeleteStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteStorageConfiguration* tds__DeleteStorageConfiguration, struct _tds__DeleteStorageConfigurationResponse* tds__DeleteStorageConfigurationResponse)
{
    if (soap_send___tds__DeleteStorageConfiguration(soap, soap_endpoint, soap_action, tds__DeleteStorageConfiguration) || soap_recv___tds__DeleteStorageConfiguration(soap, tds__DeleteStorageConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__DeleteStorageConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteStorageConfiguration* tds__DeleteStorageConfiguration)
{
    struct __tds__DeleteStorageConfiguration soap_tmp___tds__DeleteStorageConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteStorageConfiguration";
    soap_tmp___tds__DeleteStorageConfiguration.tds__DeleteStorageConfiguration = tds__DeleteStorageConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__DeleteStorageConfiguration(soap, &soap_tmp___tds__DeleteStorageConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__DeleteStorageConfiguration(soap, &soap_tmp___tds__DeleteStorageConfiguration, "-tds:DeleteStorageConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__DeleteStorageConfiguration(soap, &soap_tmp___tds__DeleteStorageConfiguration, "-tds:DeleteStorageConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__DeleteStorageConfiguration(struct soap* soap, struct _tds__DeleteStorageConfigurationResponse* tds__DeleteStorageConfigurationResponse)
{
    if (!tds__DeleteStorageConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tds__DeleteStorageConfigurationResponse(soap, tds__DeleteStorageConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__DeleteStorageConfigurationResponse(soap, tds__DeleteStorageConfigurationResponse, "tds:DeleteStorageConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__GetGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetGeoLocation* tds__GetGeoLocation, struct _tds__GetGeoLocationResponse* tds__GetGeoLocationResponse)
{
    if (soap_send___tds__GetGeoLocation(soap, soap_endpoint, soap_action, tds__GetGeoLocation) || soap_recv___tds__GetGeoLocation(soap, tds__GetGeoLocationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__GetGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetGeoLocation* tds__GetGeoLocation)
{
    struct __tds__GetGeoLocation soap_tmp___tds__GetGeoLocation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/GetGeoLocation";
    soap_tmp___tds__GetGeoLocation.tds__GetGeoLocation = tds__GetGeoLocation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__GetGeoLocation(soap, &soap_tmp___tds__GetGeoLocation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__GetGeoLocation(soap, &soap_tmp___tds__GetGeoLocation, "-tds:GetGeoLocation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__GetGeoLocation(soap, &soap_tmp___tds__GetGeoLocation, "-tds:GetGeoLocation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__GetGeoLocation(struct soap* soap, struct _tds__GetGeoLocationResponse* tds__GetGeoLocationResponse)
{
    if (!tds__GetGeoLocationResponse)
        return soap_closesock(soap);
    soap_default__tds__GetGeoLocationResponse(soap, tds__GetGeoLocationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetGeoLocationResponse(soap, tds__GetGeoLocationResponse, "tds:GetGeoLocationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__SetGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetGeoLocation* tds__SetGeoLocation, struct _tds__SetGeoLocationResponse* tds__SetGeoLocationResponse)
{
    if (soap_send___tds__SetGeoLocation(soap, soap_endpoint, soap_action, tds__SetGeoLocation) || soap_recv___tds__SetGeoLocation(soap, tds__SetGeoLocationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__SetGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetGeoLocation* tds__SetGeoLocation)
{
    struct __tds__SetGeoLocation soap_tmp___tds__SetGeoLocation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/SetGeoLocation";
    soap_tmp___tds__SetGeoLocation.tds__SetGeoLocation = tds__SetGeoLocation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__SetGeoLocation(soap, &soap_tmp___tds__SetGeoLocation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__SetGeoLocation(soap, &soap_tmp___tds__SetGeoLocation, "-tds:SetGeoLocation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__SetGeoLocation(soap, &soap_tmp___tds__SetGeoLocation, "-tds:SetGeoLocation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__SetGeoLocation(struct soap* soap, struct _tds__SetGeoLocationResponse* tds__SetGeoLocationResponse)
{
    if (!tds__SetGeoLocationResponse)
        return soap_closesock(soap);
    soap_default__tds__SetGeoLocationResponse(soap, tds__SetGeoLocationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetGeoLocationResponse(soap, tds__SetGeoLocationResponse, "tds:SetGeoLocationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tds__DeleteGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteGeoLocation* tds__DeleteGeoLocation, struct _tds__DeleteGeoLocationResponse* tds__DeleteGeoLocationResponse)
{
    if (soap_send___tds__DeleteGeoLocation(soap, soap_endpoint, soap_action, tds__DeleteGeoLocation) || soap_recv___tds__DeleteGeoLocation(soap, tds__DeleteGeoLocationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tds__DeleteGeoLocation(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__DeleteGeoLocation* tds__DeleteGeoLocation)
{
    struct __tds__DeleteGeoLocation soap_tmp___tds__DeleteGeoLocation;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteGeoLocation";
    soap_tmp___tds__DeleteGeoLocation.tds__DeleteGeoLocation = tds__DeleteGeoLocation;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tds__DeleteGeoLocation(soap, &soap_tmp___tds__DeleteGeoLocation);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tds__DeleteGeoLocation(soap, &soap_tmp___tds__DeleteGeoLocation, "-tds:DeleteGeoLocation", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tds__DeleteGeoLocation(soap, &soap_tmp___tds__DeleteGeoLocation, "-tds:DeleteGeoLocation", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tds__DeleteGeoLocation(struct soap* soap, struct _tds__DeleteGeoLocationResponse* tds__DeleteGeoLocationResponse)
{
    if (!tds__DeleteGeoLocationResponse)
        return soap_closesock(soap);
    soap_default__tds__DeleteGeoLocationResponse(soap, tds__DeleteGeoLocationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__DeleteGeoLocationResponse(soap, tds__DeleteGeoLocationResponse, "tds:DeleteGeoLocationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetServiceCapabilities* tmd__GetServiceCapabilities, struct _tmd__GetServiceCapabilitiesResponse* tmd__GetServiceCapabilitiesResponse)
{
    if (soap_send___tmd__GetServiceCapabilities(soap, soap_endpoint, soap_action, tmd__GetServiceCapabilities) || soap_recv___tmd__GetServiceCapabilities(soap, tmd__GetServiceCapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetServiceCapabilities* tmd__GetServiceCapabilities)
{
    struct __tmd__GetServiceCapabilities soap_tmp___tmd__GetServiceCapabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetServiceCapabilities";
    soap_tmp___tmd__GetServiceCapabilities.tmd__GetServiceCapabilities = tmd__GetServiceCapabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities, "-tmd:GetServiceCapabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities, "-tmd:GetServiceCapabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetServiceCapabilities(struct soap* soap, struct _tmd__GetServiceCapabilitiesResponse* tmd__GetServiceCapabilitiesResponse)
{
    if (!tmd__GetServiceCapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetServiceCapabilitiesResponse(soap, tmd__GetServiceCapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetServiceCapabilitiesResponse(soap, tmd__GetServiceCapabilitiesResponse, "tmd:GetServiceCapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetRelayOutputOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetRelayOutputOptions* tmd__GetRelayOutputOptions, struct _tmd__GetRelayOutputOptionsResponse* tmd__GetRelayOutputOptionsResponse)
{
    if (soap_send___tmd__GetRelayOutputOptions(soap, soap_endpoint, soap_action, tmd__GetRelayOutputOptions) || soap_recv___tmd__GetRelayOutputOptions(soap, tmd__GetRelayOutputOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetRelayOutputOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetRelayOutputOptions* tmd__GetRelayOutputOptions)
{
    struct __tmd__GetRelayOutputOptions soap_tmp___tmd__GetRelayOutputOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetRelayOutputOptions";
    soap_tmp___tmd__GetRelayOutputOptions.tmd__GetRelayOutputOptions = tmd__GetRelayOutputOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions, "-tmd:GetRelayOutputOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions, "-tmd:GetRelayOutputOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetRelayOutputOptions(struct soap* soap, struct _tmd__GetRelayOutputOptionsResponse* tmd__GetRelayOutputOptionsResponse)
{
    if (!tmd__GetRelayOutputOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetRelayOutputOptionsResponse(soap, tmd__GetRelayOutputOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetRelayOutputOptionsResponse(soap, tmd__GetRelayOutputOptionsResponse, "tmd:GetRelayOutputOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetAudioSources, struct tmd__GetResponse* tmd__GetAudioSourcesResponse)
{
    if (soap_send___tmd__GetAudioSources(soap, soap_endpoint, soap_action, tmd__GetAudioSources) || soap_recv___tmd__GetAudioSources(soap, tmd__GetAudioSourcesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetAudioSources)
{
    struct __tmd__GetAudioSources soap_tmp___tmd__GetAudioSources;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSources";
    soap_tmp___tmd__GetAudioSources.tmd__GetAudioSources = tmd__GetAudioSources;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources, "-tmd:GetAudioSources", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources, "-tmd:GetAudioSources", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioSources(struct soap* soap, struct tmd__GetResponse* tmd__GetAudioSourcesResponse)
{
    if (!tmd__GetAudioSourcesResponse)
        return soap_closesock(soap);
    soap_default_tmd__GetResponse(soap, tmd__GetAudioSourcesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get_tmd__GetResponse(soap, tmd__GetAudioSourcesResponse, "tmd:GetAudioSourcesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetAudioOutputs, struct tmd__GetResponse* tmd__GetAudioOutputsResponse)
{
    if (soap_send___tmd__GetAudioOutputs(soap, soap_endpoint, soap_action, tmd__GetAudioOutputs) || soap_recv___tmd__GetAudioOutputs(soap, tmd__GetAudioOutputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetAudioOutputs)
{
    struct __tmd__GetAudioOutputs soap_tmp___tmd__GetAudioOutputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputs";
    soap_tmp___tmd__GetAudioOutputs.tmd__GetAudioOutputs = tmd__GetAudioOutputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs, "-tmd:GetAudioOutputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs, "-tmd:GetAudioOutputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioOutputs(struct soap* soap, struct tmd__GetResponse* tmd__GetAudioOutputsResponse)
{
    if (!tmd__GetAudioOutputsResponse)
        return soap_closesock(soap);
    soap_default_tmd__GetResponse(soap, tmd__GetAudioOutputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get_tmd__GetResponse(soap, tmd__GetAudioOutputsResponse, "tmd:GetAudioOutputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetVideoSources, struct tmd__GetResponse* tmd__GetVideoSourcesResponse)
{
    if (soap_send___tmd__GetVideoSources(soap, soap_endpoint, soap_action, tmd__GetVideoSources) || soap_recv___tmd__GetVideoSources(soap, tmd__GetVideoSourcesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct tmd__Get* tmd__GetVideoSources)
{
    struct __tmd__GetVideoSources soap_tmp___tmd__GetVideoSources;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSources";
    soap_tmp___tmd__GetVideoSources.tmd__GetVideoSources = tmd__GetVideoSources;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources, "-tmd:GetVideoSources", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources, "-tmd:GetVideoSources", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoSources(struct soap* soap, struct tmd__GetResponse* tmd__GetVideoSourcesResponse)
{
    if (!tmd__GetVideoSourcesResponse)
        return soap_closesock(soap);
    soap_default_tmd__GetResponse(soap, tmd__GetVideoSourcesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get_tmd__GetResponse(soap, tmd__GetVideoSourcesResponse, "tmd:GetVideoSourcesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputs* tmd__GetVideoOutputs, struct _tmd__GetVideoOutputsResponse* tmd__GetVideoOutputsResponse)
{
    if (soap_send___tmd__GetVideoOutputs(soap, soap_endpoint, soap_action, tmd__GetVideoOutputs) || soap_recv___tmd__GetVideoOutputs(soap, tmd__GetVideoOutputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputs* tmd__GetVideoOutputs)
{
    struct __tmd__GetVideoOutputs soap_tmp___tmd__GetVideoOutputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputs";
    soap_tmp___tmd__GetVideoOutputs.tmd__GetVideoOutputs = tmd__GetVideoOutputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs, "-tmd:GetVideoOutputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs, "-tmd:GetVideoOutputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoOutputs(struct soap* soap, struct _tmd__GetVideoOutputsResponse* tmd__GetVideoOutputsResponse)
{
    if (!tmd__GetVideoOutputsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetVideoOutputsResponse(soap, tmd__GetVideoOutputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetVideoOutputsResponse(soap, tmd__GetVideoOutputsResponse, "tmd:GetVideoOutputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoSourceConfiguration* tmd__GetVideoSourceConfiguration, struct _tmd__GetVideoSourceConfigurationResponse* tmd__GetVideoSourceConfigurationResponse)
{
    if (soap_send___tmd__GetVideoSourceConfiguration(soap, soap_endpoint, soap_action, tmd__GetVideoSourceConfiguration) || soap_recv___tmd__GetVideoSourceConfiguration(soap, tmd__GetVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoSourceConfiguration* tmd__GetVideoSourceConfiguration)
{
    struct __tmd__GetVideoSourceConfiguration soap_tmp___tmd__GetVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSourceConfiguration";
    soap_tmp___tmd__GetVideoSourceConfiguration.tmd__GetVideoSourceConfiguration = tmd__GetVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration, "-tmd:GetVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration, "-tmd:GetVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoSourceConfiguration(struct soap* soap, struct _tmd__GetVideoSourceConfigurationResponse* tmd__GetVideoSourceConfigurationResponse)
{
    if (!tmd__GetVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetVideoSourceConfigurationResponse(soap, tmd__GetVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetVideoSourceConfigurationResponse(soap, tmd__GetVideoSourceConfigurationResponse, "tmd:GetVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputConfiguration* tmd__GetVideoOutputConfiguration, struct _tmd__GetVideoOutputConfigurationResponse* tmd__GetVideoOutputConfigurationResponse)
{
    if (soap_send___tmd__GetVideoOutputConfiguration(soap, soap_endpoint, soap_action, tmd__GetVideoOutputConfiguration) || soap_recv___tmd__GetVideoOutputConfiguration(soap, tmd__GetVideoOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputConfiguration* tmd__GetVideoOutputConfiguration)
{
    struct __tmd__GetVideoOutputConfiguration soap_tmp___tmd__GetVideoOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputConfiguration";
    soap_tmp___tmd__GetVideoOutputConfiguration.tmd__GetVideoOutputConfiguration = tmd__GetVideoOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration, "-tmd:GetVideoOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration, "-tmd:GetVideoOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoOutputConfiguration(struct soap* soap, struct _tmd__GetVideoOutputConfigurationResponse* tmd__GetVideoOutputConfigurationResponse)
{
    if (!tmd__GetVideoOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetVideoOutputConfigurationResponse(soap, tmd__GetVideoOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetVideoOutputConfigurationResponse(soap, tmd__GetVideoOutputConfigurationResponse, "tmd:GetVideoOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioSourceConfiguration* tmd__GetAudioSourceConfiguration, struct _tmd__GetAudioSourceConfigurationResponse* tmd__GetAudioSourceConfigurationResponse)
{
    if (soap_send___tmd__GetAudioSourceConfiguration(soap, soap_endpoint, soap_action, tmd__GetAudioSourceConfiguration) || soap_recv___tmd__GetAudioSourceConfiguration(soap, tmd__GetAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioSourceConfiguration* tmd__GetAudioSourceConfiguration)
{
    struct __tmd__GetAudioSourceConfiguration soap_tmp___tmd__GetAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSourceConfiguration";
    soap_tmp___tmd__GetAudioSourceConfiguration.tmd__GetAudioSourceConfiguration = tmd__GetAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration, "-tmd:GetAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration, "-tmd:GetAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioSourceConfiguration(struct soap* soap, struct _tmd__GetAudioSourceConfigurationResponse* tmd__GetAudioSourceConfigurationResponse)
{
    if (!tmd__GetAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetAudioSourceConfigurationResponse(soap, tmd__GetAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetAudioSourceConfigurationResponse(soap, tmd__GetAudioSourceConfigurationResponse, "tmd:GetAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioOutputConfiguration* tmd__GetAudioOutputConfiguration, struct _tmd__GetAudioOutputConfigurationResponse* tmd__GetAudioOutputConfigurationResponse)
{
    if (soap_send___tmd__GetAudioOutputConfiguration(soap, soap_endpoint, soap_action, tmd__GetAudioOutputConfiguration) || soap_recv___tmd__GetAudioOutputConfiguration(soap, tmd__GetAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioOutputConfiguration* tmd__GetAudioOutputConfiguration)
{
    struct __tmd__GetAudioOutputConfiguration soap_tmp___tmd__GetAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputConfiguration";
    soap_tmp___tmd__GetAudioOutputConfiguration.tmd__GetAudioOutputConfiguration = tmd__GetAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration, "-tmd:GetAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration, "-tmd:GetAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioOutputConfiguration(struct soap* soap, struct _tmd__GetAudioOutputConfigurationResponse* tmd__GetAudioOutputConfigurationResponse)
{
    if (!tmd__GetAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetAudioOutputConfigurationResponse(soap, tmd__GetAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetAudioOutputConfigurationResponse(soap, tmd__GetAudioOutputConfigurationResponse, "tmd:GetAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetVideoSourceConfiguration* tmd__SetVideoSourceConfiguration, struct _tmd__SetVideoSourceConfigurationResponse* tmd__SetVideoSourceConfigurationResponse)
{
    if (soap_send___tmd__SetVideoSourceConfiguration(soap, soap_endpoint, soap_action, tmd__SetVideoSourceConfiguration) || soap_recv___tmd__SetVideoSourceConfiguration(soap, tmd__SetVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetVideoSourceConfiguration* tmd__SetVideoSourceConfiguration)
{
    struct __tmd__SetVideoSourceConfiguration soap_tmp___tmd__SetVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetVideoSourceConfiguration";
    soap_tmp___tmd__SetVideoSourceConfiguration.tmd__SetVideoSourceConfiguration = tmd__SetVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration, "-tmd:SetVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration, "-tmd:SetVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetVideoSourceConfiguration(struct soap* soap, struct _tmd__SetVideoSourceConfigurationResponse* tmd__SetVideoSourceConfigurationResponse)
{
    if (!tmd__SetVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetVideoSourceConfigurationResponse(soap, tmd__SetVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetVideoSourceConfigurationResponse(soap, tmd__SetVideoSourceConfigurationResponse, "tmd:SetVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetVideoOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetVideoOutputConfiguration* tmd__SetVideoOutputConfiguration, struct _tmd__SetVideoOutputConfigurationResponse* tmd__SetVideoOutputConfigurationResponse)
{
    if (soap_send___tmd__SetVideoOutputConfiguration(soap, soap_endpoint, soap_action, tmd__SetVideoOutputConfiguration) || soap_recv___tmd__SetVideoOutputConfiguration(soap, tmd__SetVideoOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetVideoOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetVideoOutputConfiguration* tmd__SetVideoOutputConfiguration)
{
    struct __tmd__SetVideoOutputConfiguration soap_tmp___tmd__SetVideoOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetVideoOutputConfiguration";
    soap_tmp___tmd__SetVideoOutputConfiguration.tmd__SetVideoOutputConfiguration = tmd__SetVideoOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration, "-tmd:SetVideoOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration, "-tmd:SetVideoOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetVideoOutputConfiguration(struct soap* soap, struct _tmd__SetVideoOutputConfigurationResponse* tmd__SetVideoOutputConfigurationResponse)
{
    if (!tmd__SetVideoOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetVideoOutputConfigurationResponse(soap, tmd__SetVideoOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetVideoOutputConfigurationResponse(soap, tmd__SetVideoOutputConfigurationResponse, "tmd:SetVideoOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetAudioSourceConfiguration* tmd__SetAudioSourceConfiguration, struct _tmd__SetAudioSourceConfigurationResponse* tmd__SetAudioSourceConfigurationResponse)
{
    if (soap_send___tmd__SetAudioSourceConfiguration(soap, soap_endpoint, soap_action, tmd__SetAudioSourceConfiguration) || soap_recv___tmd__SetAudioSourceConfiguration(soap, tmd__SetAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetAudioSourceConfiguration* tmd__SetAudioSourceConfiguration)
{
    struct __tmd__SetAudioSourceConfiguration soap_tmp___tmd__SetAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetAudioSourceConfiguration";
    soap_tmp___tmd__SetAudioSourceConfiguration.tmd__SetAudioSourceConfiguration = tmd__SetAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration, "-tmd:SetAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration, "-tmd:SetAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetAudioSourceConfiguration(struct soap* soap, struct _tmd__SetAudioSourceConfigurationResponse* tmd__SetAudioSourceConfigurationResponse)
{
    if (!tmd__SetAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetAudioSourceConfigurationResponse(soap, tmd__SetAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetAudioSourceConfigurationResponse(soap, tmd__SetAudioSourceConfigurationResponse, "tmd:SetAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetAudioOutputConfiguration* tmd__SetAudioOutputConfiguration, struct _tmd__SetAudioOutputConfigurationResponse* tmd__SetAudioOutputConfigurationResponse)
{
    if (soap_send___tmd__SetAudioOutputConfiguration(soap, soap_endpoint, soap_action, tmd__SetAudioOutputConfiguration) || soap_recv___tmd__SetAudioOutputConfiguration(soap, tmd__SetAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetAudioOutputConfiguration* tmd__SetAudioOutputConfiguration)
{
    struct __tmd__SetAudioOutputConfiguration soap_tmp___tmd__SetAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetAudioOutputConfiguration";
    soap_tmp___tmd__SetAudioOutputConfiguration.tmd__SetAudioOutputConfiguration = tmd__SetAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration, "-tmd:SetAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration, "-tmd:SetAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetAudioOutputConfiguration(struct soap* soap, struct _tmd__SetAudioOutputConfigurationResponse* tmd__SetAudioOutputConfigurationResponse)
{
    if (!tmd__SetAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetAudioOutputConfigurationResponse(soap, tmd__SetAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetAudioOutputConfigurationResponse(soap, tmd__SetAudioOutputConfigurationResponse, "tmd:SetAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoSourceConfigurationOptions* tmd__GetVideoSourceConfigurationOptions, struct _tmd__GetVideoSourceConfigurationOptionsResponse* tmd__GetVideoSourceConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetVideoSourceConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetVideoSourceConfigurationOptions) || soap_recv___tmd__GetVideoSourceConfigurationOptions(soap, tmd__GetVideoSourceConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoSourceConfigurationOptions* tmd__GetVideoSourceConfigurationOptions)
{
    struct __tmd__GetVideoSourceConfigurationOptions soap_tmp___tmd__GetVideoSourceConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSourceConfigurationOptions";
    soap_tmp___tmd__GetVideoSourceConfigurationOptions.tmd__GetVideoSourceConfigurationOptions = tmd__GetVideoSourceConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions, "-tmd:GetVideoSourceConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions, "-tmd:GetVideoSourceConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoSourceConfigurationOptions(struct soap* soap, struct _tmd__GetVideoSourceConfigurationOptionsResponse* tmd__GetVideoSourceConfigurationOptionsResponse)
{
    if (!tmd__GetVideoSourceConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetVideoSourceConfigurationOptionsResponse(soap, tmd__GetVideoSourceConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetVideoSourceConfigurationOptionsResponse(soap, tmd__GetVideoSourceConfigurationOptionsResponse, "tmd:GetVideoSourceConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetVideoOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputConfigurationOptions* tmd__GetVideoOutputConfigurationOptions, struct _tmd__GetVideoOutputConfigurationOptionsResponse* tmd__GetVideoOutputConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetVideoOutputConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetVideoOutputConfigurationOptions) || soap_recv___tmd__GetVideoOutputConfigurationOptions(soap, tmd__GetVideoOutputConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetVideoOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetVideoOutputConfigurationOptions* tmd__GetVideoOutputConfigurationOptions)
{
    struct __tmd__GetVideoOutputConfigurationOptions soap_tmp___tmd__GetVideoOutputConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputConfigurationOptions";
    soap_tmp___tmd__GetVideoOutputConfigurationOptions.tmd__GetVideoOutputConfigurationOptions = tmd__GetVideoOutputConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions, "-tmd:GetVideoOutputConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions, "-tmd:GetVideoOutputConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetVideoOutputConfigurationOptions(struct soap* soap, struct _tmd__GetVideoOutputConfigurationOptionsResponse* tmd__GetVideoOutputConfigurationOptionsResponse)
{
    if (!tmd__GetVideoOutputConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetVideoOutputConfigurationOptionsResponse(soap, tmd__GetVideoOutputConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetVideoOutputConfigurationOptionsResponse(soap, tmd__GetVideoOutputConfigurationOptionsResponse, "tmd:GetVideoOutputConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioSourceConfigurationOptions* tmd__GetAudioSourceConfigurationOptions, struct _tmd__GetAudioSourceConfigurationOptionsResponse* tmd__GetAudioSourceConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetAudioSourceConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetAudioSourceConfigurationOptions) || soap_recv___tmd__GetAudioSourceConfigurationOptions(soap, tmd__GetAudioSourceConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioSourceConfigurationOptions* tmd__GetAudioSourceConfigurationOptions)
{
    struct __tmd__GetAudioSourceConfigurationOptions soap_tmp___tmd__GetAudioSourceConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSourceConfigurationOptions";
    soap_tmp___tmd__GetAudioSourceConfigurationOptions.tmd__GetAudioSourceConfigurationOptions = tmd__GetAudioSourceConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions, "-tmd:GetAudioSourceConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions, "-tmd:GetAudioSourceConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioSourceConfigurationOptions(struct soap* soap, struct _tmd__GetAudioSourceConfigurationOptionsResponse* tmd__GetAudioSourceConfigurationOptionsResponse)
{
    if (!tmd__GetAudioSourceConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetAudioSourceConfigurationOptionsResponse(soap, tmd__GetAudioSourceConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetAudioSourceConfigurationOptionsResponse(soap, tmd__GetAudioSourceConfigurationOptionsResponse, "tmd:GetAudioSourceConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetAudioOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioOutputConfigurationOptions* tmd__GetAudioOutputConfigurationOptions, struct _tmd__GetAudioOutputConfigurationOptionsResponse* tmd__GetAudioOutputConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetAudioOutputConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetAudioOutputConfigurationOptions) || soap_recv___tmd__GetAudioOutputConfigurationOptions(soap, tmd__GetAudioOutputConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetAudioOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetAudioOutputConfigurationOptions* tmd__GetAudioOutputConfigurationOptions)
{
    struct __tmd__GetAudioOutputConfigurationOptions soap_tmp___tmd__GetAudioOutputConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputConfigurationOptions";
    soap_tmp___tmd__GetAudioOutputConfigurationOptions.tmd__GetAudioOutputConfigurationOptions = tmd__GetAudioOutputConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions, "-tmd:GetAudioOutputConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions, "-tmd:GetAudioOutputConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetAudioOutputConfigurationOptions(struct soap* soap, struct _tmd__GetAudioOutputConfigurationOptionsResponse* tmd__GetAudioOutputConfigurationOptionsResponse)
{
    if (!tmd__GetAudioOutputConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetAudioOutputConfigurationOptionsResponse(soap, tmd__GetAudioOutputConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetAudioOutputConfigurationOptionsResponse(soap, tmd__GetAudioOutputConfigurationOptionsResponse, "tmd:GetAudioOutputConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetRelayOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRelayOutputs* tds__GetRelayOutputs, struct _tds__GetRelayOutputsResponse* tds__GetRelayOutputsResponse)
{
    if (soap_send___tmd__GetRelayOutputs(soap, soap_endpoint, soap_action, tds__GetRelayOutputs) || soap_recv___tmd__GetRelayOutputs(soap, tds__GetRelayOutputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetRelayOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__GetRelayOutputs* tds__GetRelayOutputs)
{
    struct __tmd__GetRelayOutputs soap_tmp___tmd__GetRelayOutputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetRelayOutputs";
    soap_tmp___tmd__GetRelayOutputs.tds__GetRelayOutputs = tds__GetRelayOutputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs, "-tmd:GetRelayOutputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs, "-tmd:GetRelayOutputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetRelayOutputs(struct soap* soap, struct _tds__GetRelayOutputsResponse* tds__GetRelayOutputsResponse)
{
    if (!tds__GetRelayOutputsResponse)
        return soap_closesock(soap);
    soap_default__tds__GetRelayOutputsResponse(soap, tds__GetRelayOutputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__GetRelayOutputsResponse(soap, tds__GetRelayOutputsResponse, "tds:GetRelayOutputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetRelayOutputSettings(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetRelayOutputSettings* tmd__SetRelayOutputSettings, struct _tmd__SetRelayOutputSettingsResponse* tmd__SetRelayOutputSettingsResponse)
{
    if (soap_send___tmd__SetRelayOutputSettings(soap, soap_endpoint, soap_action, tmd__SetRelayOutputSettings) || soap_recv___tmd__SetRelayOutputSettings(soap, tmd__SetRelayOutputSettingsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetRelayOutputSettings(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetRelayOutputSettings* tmd__SetRelayOutputSettings)
{
    struct __tmd__SetRelayOutputSettings soap_tmp___tmd__SetRelayOutputSettings;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetRelayOutputSettings";
    soap_tmp___tmd__SetRelayOutputSettings.tmd__SetRelayOutputSettings = tmd__SetRelayOutputSettings;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings, "-tmd:SetRelayOutputSettings", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings, "-tmd:SetRelayOutputSettings", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetRelayOutputSettings(struct soap* soap, struct _tmd__SetRelayOutputSettingsResponse* tmd__SetRelayOutputSettingsResponse)
{
    if (!tmd__SetRelayOutputSettingsResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetRelayOutputSettingsResponse(soap, tmd__SetRelayOutputSettingsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetRelayOutputSettingsResponse(soap, tmd__SetRelayOutputSettingsResponse, "tmd:SetRelayOutputSettingsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetRelayOutputState(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputState* tds__SetRelayOutputState, struct _tds__SetRelayOutputStateResponse* tds__SetRelayOutputStateResponse)
{
    if (soap_send___tmd__SetRelayOutputState(soap, soap_endpoint, soap_action, tds__SetRelayOutputState) || soap_recv___tmd__SetRelayOutputState(soap, tds__SetRelayOutputStateResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetRelayOutputState(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tds__SetRelayOutputState* tds__SetRelayOutputState)
{
    struct __tmd__SetRelayOutputState soap_tmp___tmd__SetRelayOutputState;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetRelayOutputState";
    soap_tmp___tmd__SetRelayOutputState.tds__SetRelayOutputState = tds__SetRelayOutputState;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState, "-tmd:SetRelayOutputState", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState, "-tmd:SetRelayOutputState", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetRelayOutputState(struct soap* soap, struct _tds__SetRelayOutputStateResponse* tds__SetRelayOutputStateResponse)
{
    if (!tds__SetRelayOutputStateResponse)
        return soap_closesock(soap);
    soap_default__tds__SetRelayOutputStateResponse(soap, tds__SetRelayOutputStateResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tds__SetRelayOutputStateResponse(soap, tds__SetRelayOutputStateResponse, "tds:SetRelayOutputStateResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetDigitalInputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetDigitalInputs* tmd__GetDigitalInputs, struct _tmd__GetDigitalInputsResponse* tmd__GetDigitalInputsResponse)
{
    if (soap_send___tmd__GetDigitalInputs(soap, soap_endpoint, soap_action, tmd__GetDigitalInputs) || soap_recv___tmd__GetDigitalInputs(soap, tmd__GetDigitalInputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetDigitalInputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetDigitalInputs* tmd__GetDigitalInputs)
{
    struct __tmd__GetDigitalInputs soap_tmp___tmd__GetDigitalInputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetDigitalInputs";
    soap_tmp___tmd__GetDigitalInputs.tmd__GetDigitalInputs = tmd__GetDigitalInputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs, "-tmd:GetDigitalInputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs, "-tmd:GetDigitalInputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetDigitalInputs(struct soap* soap, struct _tmd__GetDigitalInputsResponse* tmd__GetDigitalInputsResponse)
{
    if (!tmd__GetDigitalInputsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetDigitalInputsResponse(soap, tmd__GetDigitalInputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetDigitalInputsResponse(soap, tmd__GetDigitalInputsResponse, "tmd:GetDigitalInputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetDigitalInputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetDigitalInputConfigurationOptions* tmd__GetDigitalInputConfigurationOptions, struct _tmd__GetDigitalInputConfigurationOptionsResponse* tmd__GetDigitalInputConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetDigitalInputConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetDigitalInputConfigurationOptions) || soap_recv___tmd__GetDigitalInputConfigurationOptions(soap, tmd__GetDigitalInputConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetDigitalInputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetDigitalInputConfigurationOptions* tmd__GetDigitalInputConfigurationOptions)
{
    struct __tmd__GetDigitalInputConfigurationOptions soap_tmp___tmd__GetDigitalInputConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetDigitalInputConfigurationOptions";
    soap_tmp___tmd__GetDigitalInputConfigurationOptions.tmd__GetDigitalInputConfigurationOptions = tmd__GetDigitalInputConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetDigitalInputConfigurationOptions(soap, &soap_tmp___tmd__GetDigitalInputConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetDigitalInputConfigurationOptions(soap, &soap_tmp___tmd__GetDigitalInputConfigurationOptions, "-tmd:GetDigitalInputConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetDigitalInputConfigurationOptions(soap, &soap_tmp___tmd__GetDigitalInputConfigurationOptions, "-tmd:GetDigitalInputConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetDigitalInputConfigurationOptions(struct soap* soap, struct _tmd__GetDigitalInputConfigurationOptionsResponse* tmd__GetDigitalInputConfigurationOptionsResponse)
{
    if (!tmd__GetDigitalInputConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetDigitalInputConfigurationOptionsResponse(soap, tmd__GetDigitalInputConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetDigitalInputConfigurationOptionsResponse(soap, tmd__GetDigitalInputConfigurationOptionsResponse, "tmd:GetDigitalInputConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetDigitalInputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetDigitalInputConfigurations* tmd__SetDigitalInputConfigurations, struct _tmd__SetDigitalInputConfigurationsResponse* tmd__SetDigitalInputConfigurationsResponse)
{
    if (soap_send___tmd__SetDigitalInputConfigurations(soap, soap_endpoint, soap_action, tmd__SetDigitalInputConfigurations) || soap_recv___tmd__SetDigitalInputConfigurations(soap, tmd__SetDigitalInputConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetDigitalInputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetDigitalInputConfigurations* tmd__SetDigitalInputConfigurations)
{
    struct __tmd__SetDigitalInputConfigurations soap_tmp___tmd__SetDigitalInputConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetDigitalInputConfigurations";
    soap_tmp___tmd__SetDigitalInputConfigurations.tmd__SetDigitalInputConfigurations = tmd__SetDigitalInputConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetDigitalInputConfigurations(soap, &soap_tmp___tmd__SetDigitalInputConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetDigitalInputConfigurations(soap, &soap_tmp___tmd__SetDigitalInputConfigurations, "-tmd:SetDigitalInputConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetDigitalInputConfigurations(soap, &soap_tmp___tmd__SetDigitalInputConfigurations, "-tmd:SetDigitalInputConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetDigitalInputConfigurations(struct soap* soap, struct _tmd__SetDigitalInputConfigurationsResponse* tmd__SetDigitalInputConfigurationsResponse)
{
    if (!tmd__SetDigitalInputConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetDigitalInputConfigurationsResponse(soap, tmd__SetDigitalInputConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetDigitalInputConfigurationsResponse(soap, tmd__SetDigitalInputConfigurationsResponse, "tmd:SetDigitalInputConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetSerialPorts(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPorts* tmd__GetSerialPorts, struct _tmd__GetSerialPortsResponse* tmd__GetSerialPortsResponse)
{
    if (soap_send___tmd__GetSerialPorts(soap, soap_endpoint, soap_action, tmd__GetSerialPorts) || soap_recv___tmd__GetSerialPorts(soap, tmd__GetSerialPortsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetSerialPorts(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPorts* tmd__GetSerialPorts)
{
    struct __tmd__GetSerialPorts soap_tmp___tmd__GetSerialPorts;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPorts";
    soap_tmp___tmd__GetSerialPorts.tmd__GetSerialPorts = tmd__GetSerialPorts;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts, "-tmd:GetSerialPorts", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts, "-tmd:GetSerialPorts", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetSerialPorts(struct soap* soap, struct _tmd__GetSerialPortsResponse* tmd__GetSerialPortsResponse)
{
    if (!tmd__GetSerialPortsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetSerialPortsResponse(soap, tmd__GetSerialPortsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetSerialPortsResponse(soap, tmd__GetSerialPortsResponse, "tmd:GetSerialPortsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetSerialPortConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPortConfiguration* tmd__GetSerialPortConfiguration, struct _tmd__GetSerialPortConfigurationResponse* tmd__GetSerialPortConfigurationResponse)
{
    if (soap_send___tmd__GetSerialPortConfiguration(soap, soap_endpoint, soap_action, tmd__GetSerialPortConfiguration) || soap_recv___tmd__GetSerialPortConfiguration(soap, tmd__GetSerialPortConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetSerialPortConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPortConfiguration* tmd__GetSerialPortConfiguration)
{
    struct __tmd__GetSerialPortConfiguration soap_tmp___tmd__GetSerialPortConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPortConfigurations";
    soap_tmp___tmd__GetSerialPortConfiguration.tmd__GetSerialPortConfiguration = tmd__GetSerialPortConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration, "-tmd:GetSerialPortConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration, "-tmd:GetSerialPortConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetSerialPortConfiguration(struct soap* soap, struct _tmd__GetSerialPortConfigurationResponse* tmd__GetSerialPortConfigurationResponse)
{
    if (!tmd__GetSerialPortConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetSerialPortConfigurationResponse(soap, tmd__GetSerialPortConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetSerialPortConfigurationResponse(soap, tmd__GetSerialPortConfigurationResponse, "tmd:GetSerialPortConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SetSerialPortConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetSerialPortConfiguration* tmd__SetSerialPortConfiguration, struct _tmd__SetSerialPortConfigurationResponse* tmd__SetSerialPortConfigurationResponse)
{
    if (soap_send___tmd__SetSerialPortConfiguration(soap, soap_endpoint, soap_action, tmd__SetSerialPortConfiguration) || soap_recv___tmd__SetSerialPortConfiguration(soap, tmd__SetSerialPortConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SetSerialPortConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SetSerialPortConfiguration* tmd__SetSerialPortConfiguration)
{
    struct __tmd__SetSerialPortConfiguration soap_tmp___tmd__SetSerialPortConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetSerialPortConfiguration";
    soap_tmp___tmd__SetSerialPortConfiguration.tmd__SetSerialPortConfiguration = tmd__SetSerialPortConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration, "-tmd:SetSerialPortConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration, "-tmd:SetSerialPortConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SetSerialPortConfiguration(struct soap* soap, struct _tmd__SetSerialPortConfigurationResponse* tmd__SetSerialPortConfigurationResponse)
{
    if (!tmd__SetSerialPortConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tmd__SetSerialPortConfigurationResponse(soap, tmd__SetSerialPortConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SetSerialPortConfigurationResponse(soap, tmd__SetSerialPortConfigurationResponse, "tmd:SetSerialPortConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__GetSerialPortConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPortConfigurationOptions* tmd__GetSerialPortConfigurationOptions, struct _tmd__GetSerialPortConfigurationOptionsResponse* tmd__GetSerialPortConfigurationOptionsResponse)
{
    if (soap_send___tmd__GetSerialPortConfigurationOptions(soap, soap_endpoint, soap_action, tmd__GetSerialPortConfigurationOptions) || soap_recv___tmd__GetSerialPortConfigurationOptions(soap, tmd__GetSerialPortConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__GetSerialPortConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__GetSerialPortConfigurationOptions* tmd__GetSerialPortConfigurationOptions)
{
    struct __tmd__GetSerialPortConfigurationOptions soap_tmp___tmd__GetSerialPortConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPortConfigurationOptions";
    soap_tmp___tmd__GetSerialPortConfigurationOptions.tmd__GetSerialPortConfigurationOptions = tmd__GetSerialPortConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions, "-tmd:GetSerialPortConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions, "-tmd:GetSerialPortConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__GetSerialPortConfigurationOptions(struct soap* soap, struct _tmd__GetSerialPortConfigurationOptionsResponse* tmd__GetSerialPortConfigurationOptionsResponse)
{
    if (!tmd__GetSerialPortConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tmd__GetSerialPortConfigurationOptionsResponse(soap, tmd__GetSerialPortConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__GetSerialPortConfigurationOptionsResponse(soap, tmd__GetSerialPortConfigurationOptionsResponse, "tmd:GetSerialPortConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tmd__SendReceiveSerialCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SendReceiveSerialCommand* tmd__SendReceiveSerialCommand, struct _tmd__SendReceiveSerialCommandResponse* tmd__SendReceiveSerialCommandResponse)
{
    if (soap_send___tmd__SendReceiveSerialCommand(soap, soap_endpoint, soap_action, tmd__SendReceiveSerialCommand) || soap_recv___tmd__SendReceiveSerialCommand(soap, tmd__SendReceiveSerialCommandResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tmd__SendReceiveSerialCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tmd__SendReceiveSerialCommand* tmd__SendReceiveSerialCommand)
{
    struct __tmd__SendReceiveSerialCommand soap_tmp___tmd__SendReceiveSerialCommand;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SendReceiveSerialCommand";
    soap_tmp___tmd__SendReceiveSerialCommand.tmd__SendReceiveSerialCommand = tmd__SendReceiveSerialCommand;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand, "-tmd:SendReceiveSerialCommand", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand, "-tmd:SendReceiveSerialCommand", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tmd__SendReceiveSerialCommand(struct soap* soap, struct _tmd__SendReceiveSerialCommandResponse* tmd__SendReceiveSerialCommandResponse)
{
    if (!tmd__SendReceiveSerialCommandResponse)
        return soap_closesock(soap);
    soap_default__tmd__SendReceiveSerialCommandResponse(soap, tmd__SendReceiveSerialCommandResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tmd__SendReceiveSerialCommandResponse(soap, tmd__SendReceiveSerialCommandResponse, "tmd:SendReceiveSerialCommandResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetServiceCapabilities* tptz__GetServiceCapabilities, struct _tptz__GetServiceCapabilitiesResponse* tptz__GetServiceCapabilitiesResponse)
{
    if (soap_send___tptz__GetServiceCapabilities(soap, soap_endpoint, soap_action, tptz__GetServiceCapabilities) || soap_recv___tptz__GetServiceCapabilities(soap, tptz__GetServiceCapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetServiceCapabilities* tptz__GetServiceCapabilities)
{
    struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetServiceCapabilities";
    soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities = tptz__GetServiceCapabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetServiceCapabilities(struct soap* soap, struct _tptz__GetServiceCapabilitiesResponse* tptz__GetServiceCapabilitiesResponse)
{
    if (!tptz__GetServiceCapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetServiceCapabilitiesResponse(soap, tptz__GetServiceCapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetServiceCapabilitiesResponse(soap, tptz__GetServiceCapabilitiesResponse, "tptz:GetServiceCapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfigurations* tptz__GetConfigurations, struct _tptz__GetConfigurationsResponse* tptz__GetConfigurationsResponse)
{
    if (soap_send___tptz__GetConfigurations(soap, soap_endpoint, soap_action, tptz__GetConfigurations) || soap_recv___tptz__GetConfigurations(soap, tptz__GetConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfigurations* tptz__GetConfigurations)
{
    struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurations";
    soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations = tptz__GetConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetConfigurations(struct soap* soap, struct _tptz__GetConfigurationsResponse* tptz__GetConfigurationsResponse)
{
    if (!tptz__GetConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetConfigurationsResponse(soap, tptz__GetConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetConfigurationsResponse(soap, tptz__GetConfigurationsResponse, "tptz:GetConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetPresets(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresets* tptz__GetPresets, struct _tptz__GetPresetsResponse* tptz__GetPresetsResponse)
{
    if (soap_send___tptz__GetPresets(soap, soap_endpoint, soap_action, tptz__GetPresets) || soap_recv___tptz__GetPresets(soap, tptz__GetPresetsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetPresets(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresets* tptz__GetPresets)
{
    struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresets";
    soap_tmp___tptz__GetPresets.tptz__GetPresets = tptz__GetPresets;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetPresets(struct soap* soap, struct _tptz__GetPresetsResponse* tptz__GetPresetsResponse)
{
    if (!tptz__GetPresetsResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetPresetsResponse(soap, tptz__GetPresetsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetPresetsResponse(soap, tptz__GetPresetsResponse, "tptz:GetPresetsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__SetPreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetPreset* tptz__SetPreset, struct _tptz__SetPresetResponse* tptz__SetPresetResponse)
{
    if (soap_send___tptz__SetPreset(soap, soap_endpoint, soap_action, tptz__SetPreset) || soap_recv___tptz__SetPreset(soap, tptz__SetPresetResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__SetPreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetPreset* tptz__SetPreset)
{
    struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetPreset";
    soap_tmp___tptz__SetPreset.tptz__SetPreset = tptz__SetPreset;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__SetPreset(struct soap* soap, struct _tptz__SetPresetResponse* tptz__SetPresetResponse)
{
    if (!tptz__SetPresetResponse)
        return soap_closesock(soap);
    soap_default__tptz__SetPresetResponse(soap, tptz__SetPresetResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__SetPresetResponse(soap, tptz__SetPresetResponse, "tptz:SetPresetResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__RemovePreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RemovePreset* tptz__RemovePreset, struct _tptz__RemovePresetResponse* tptz__RemovePresetResponse)
{
    if (soap_send___tptz__RemovePreset(soap, soap_endpoint, soap_action, tptz__RemovePreset) || soap_recv___tptz__RemovePreset(soap, tptz__RemovePresetResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__RemovePreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RemovePreset* tptz__RemovePreset)
{
    struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePreset";
    soap_tmp___tptz__RemovePreset.tptz__RemovePreset = tptz__RemovePreset;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__RemovePreset(struct soap* soap, struct _tptz__RemovePresetResponse* tptz__RemovePresetResponse)
{
    if (!tptz__RemovePresetResponse)
        return soap_closesock(soap);
    soap_default__tptz__RemovePresetResponse(soap, tptz__RemovePresetResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__RemovePresetResponse(soap, tptz__RemovePresetResponse, "tptz:RemovePresetResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GotoPreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GotoPreset* tptz__GotoPreset, struct _tptz__GotoPresetResponse* tptz__GotoPresetResponse)
{
    if (soap_send___tptz__GotoPreset(soap, soap_endpoint, soap_action, tptz__GotoPreset) || soap_recv___tptz__GotoPreset(soap, tptz__GotoPresetResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GotoPreset(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GotoPreset* tptz__GotoPreset)
{
    struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoPreset";
    soap_tmp___tptz__GotoPreset.tptz__GotoPreset = tptz__GotoPreset;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GotoPreset(struct soap* soap, struct _tptz__GotoPresetResponse* tptz__GotoPresetResponse)
{
    if (!tptz__GotoPresetResponse)
        return soap_closesock(soap);
    soap_default__tptz__GotoPresetResponse(soap, tptz__GotoPresetResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GotoPresetResponse(soap, tptz__GotoPresetResponse, "tptz:GotoPresetResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetStatus* tptz__GetStatus, struct _tptz__GetStatusResponse* tptz__GetStatusResponse)
{
    if (soap_send___tptz__GetStatus(soap, soap_endpoint, soap_action, tptz__GetStatus) || soap_recv___tptz__GetStatus(soap, tptz__GetStatusResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetStatus(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetStatus* tptz__GetStatus)
{
    struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetStatus";
    soap_tmp___tptz__GetStatus.tptz__GetStatus = tptz__GetStatus;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetStatus(struct soap* soap, struct _tptz__GetStatusResponse* tptz__GetStatusResponse)
{
    if (!tptz__GetStatusResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetStatusResponse(soap, tptz__GetStatusResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetStatusResponse(soap, tptz__GetStatusResponse, "tptz:GetStatusResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfiguration* tptz__GetConfiguration, struct _tptz__GetConfigurationResponse* tptz__GetConfigurationResponse)
{
    if (soap_send___tptz__GetConfiguration(soap, soap_endpoint, soap_action, tptz__GetConfiguration) || soap_recv___tptz__GetConfiguration(soap, tptz__GetConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfiguration* tptz__GetConfiguration)
{
    struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfiguration";
    soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration = tptz__GetConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetConfiguration(struct soap* soap, struct _tptz__GetConfigurationResponse* tptz__GetConfigurationResponse)
{
    if (!tptz__GetConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetConfigurationResponse(soap, tptz__GetConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetConfigurationResponse(soap, tptz__GetConfigurationResponse, "tptz:GetConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetNodes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetNodes* tptz__GetNodes, struct _tptz__GetNodesResponse* tptz__GetNodesResponse)
{
    if (soap_send___tptz__GetNodes(soap, soap_endpoint, soap_action, tptz__GetNodes) || soap_recv___tptz__GetNodes(soap, tptz__GetNodesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetNodes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetNodes* tptz__GetNodes)
{
    struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNodes";
    soap_tmp___tptz__GetNodes.tptz__GetNodes = tptz__GetNodes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetNodes(struct soap* soap, struct _tptz__GetNodesResponse* tptz__GetNodesResponse)
{
    if (!tptz__GetNodesResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetNodesResponse(soap, tptz__GetNodesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetNodesResponse(soap, tptz__GetNodesResponse, "tptz:GetNodesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetNode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetNode* tptz__GetNode, struct _tptz__GetNodeResponse* tptz__GetNodeResponse)
{
    if (soap_send___tptz__GetNode(soap, soap_endpoint, soap_action, tptz__GetNode) || soap_recv___tptz__GetNode(soap, tptz__GetNodeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetNode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetNode* tptz__GetNode)
{
    struct __tptz__GetNode soap_tmp___tptz__GetNode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNode";
    soap_tmp___tptz__GetNode.tptz__GetNode = tptz__GetNode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetNode(soap, &soap_tmp___tptz__GetNode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetNode(struct soap* soap, struct _tptz__GetNodeResponse* tptz__GetNodeResponse)
{
    if (!tptz__GetNodeResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetNodeResponse(soap, tptz__GetNodeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetNodeResponse(soap, tptz__GetNodeResponse, "tptz:GetNodeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__SetConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetConfiguration* tptz__SetConfiguration, struct _tptz__SetConfigurationResponse* tptz__SetConfigurationResponse)
{
    if (soap_send___tptz__SetConfiguration(soap, soap_endpoint, soap_action, tptz__SetConfiguration) || soap_recv___tptz__SetConfiguration(soap, tptz__SetConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__SetConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetConfiguration* tptz__SetConfiguration)
{
    struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetConfiguration";
    soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration = tptz__SetConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__SetConfiguration(struct soap* soap, struct _tptz__SetConfigurationResponse* tptz__SetConfigurationResponse)
{
    if (!tptz__SetConfigurationResponse)
        return soap_closesock(soap);
    soap_default__tptz__SetConfigurationResponse(soap, tptz__SetConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__SetConfigurationResponse(soap, tptz__SetConfigurationResponse, "tptz:SetConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfigurationOptions* tptz__GetConfigurationOptions, struct _tptz__GetConfigurationOptionsResponse* tptz__GetConfigurationOptionsResponse)
{
    if (soap_send___tptz__GetConfigurationOptions(soap, soap_endpoint, soap_action, tptz__GetConfigurationOptions) || soap_recv___tptz__GetConfigurationOptions(soap, tptz__GetConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetConfigurationOptions* tptz__GetConfigurationOptions)
{
    struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurationOptions";
    soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions = tptz__GetConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetConfigurationOptions(struct soap* soap, struct _tptz__GetConfigurationOptionsResponse* tptz__GetConfigurationOptionsResponse)
{
    if (!tptz__GetConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetConfigurationOptionsResponse(soap, tptz__GetConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetConfigurationOptionsResponse(soap, tptz__GetConfigurationOptionsResponse, "tptz:GetConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GotoHomePosition(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GotoHomePosition* tptz__GotoHomePosition, struct _tptz__GotoHomePositionResponse* tptz__GotoHomePositionResponse)
{
    if (soap_send___tptz__GotoHomePosition(soap, soap_endpoint, soap_action, tptz__GotoHomePosition) || soap_recv___tptz__GotoHomePosition(soap, tptz__GotoHomePositionResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GotoHomePosition(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GotoHomePosition* tptz__GotoHomePosition)
{
    struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoHomePosition";
    soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition = tptz__GotoHomePosition;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GotoHomePosition(struct soap* soap, struct _tptz__GotoHomePositionResponse* tptz__GotoHomePositionResponse)
{
    if (!tptz__GotoHomePositionResponse)
        return soap_closesock(soap);
    soap_default__tptz__GotoHomePositionResponse(soap, tptz__GotoHomePositionResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GotoHomePositionResponse(soap, tptz__GotoHomePositionResponse, "tptz:GotoHomePositionResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__SetHomePosition(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetHomePosition* tptz__SetHomePosition, struct _tptz__SetHomePositionResponse* tptz__SetHomePositionResponse)
{
    if (soap_send___tptz__SetHomePosition(soap, soap_endpoint, soap_action, tptz__SetHomePosition) || soap_recv___tptz__SetHomePosition(soap, tptz__SetHomePositionResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__SetHomePosition(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SetHomePosition* tptz__SetHomePosition)
{
    struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetHomePosition";
    soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition = tptz__SetHomePosition;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__SetHomePosition(struct soap* soap, struct _tptz__SetHomePositionResponse* tptz__SetHomePositionResponse)
{
    if (!tptz__SetHomePositionResponse)
        return soap_closesock(soap);
    soap_default__tptz__SetHomePositionResponse(soap, tptz__SetHomePositionResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__SetHomePositionResponse(soap, tptz__SetHomePositionResponse, "tptz:SetHomePositionResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__ContinuousMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__ContinuousMove* tptz__ContinuousMove, struct _tptz__ContinuousMoveResponse* tptz__ContinuousMoveResponse)
{
    if (soap_send___tptz__ContinuousMove(soap, soap_endpoint, soap_action, tptz__ContinuousMove) || soap_recv___tptz__ContinuousMove(soap, tptz__ContinuousMoveResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__ContinuousMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__ContinuousMove* tptz__ContinuousMove)
{
    struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove";
    soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove = tptz__ContinuousMove;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__ContinuousMove(struct soap* soap, struct _tptz__ContinuousMoveResponse* tptz__ContinuousMoveResponse)
{
    if (!tptz__ContinuousMoveResponse)
        return soap_closesock(soap);
    soap_default__tptz__ContinuousMoveResponse(soap, tptz__ContinuousMoveResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__ContinuousMoveResponse(soap, tptz__ContinuousMoveResponse, "tptz:ContinuousMoveResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__RelativeMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RelativeMove* tptz__RelativeMove, struct _tptz__RelativeMoveResponse* tptz__RelativeMoveResponse)
{
    if (soap_send___tptz__RelativeMove(soap, soap_endpoint, soap_action, tptz__RelativeMove) || soap_recv___tptz__RelativeMove(soap, tptz__RelativeMoveResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__RelativeMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RelativeMove* tptz__RelativeMove)
{
    struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RelativeMove";
    soap_tmp___tptz__RelativeMove.tptz__RelativeMove = tptz__RelativeMove;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__RelativeMove(struct soap* soap, struct _tptz__RelativeMoveResponse* tptz__RelativeMoveResponse)
{
    if (!tptz__RelativeMoveResponse)
        return soap_closesock(soap);
    soap_default__tptz__RelativeMoveResponse(soap, tptz__RelativeMoveResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__RelativeMoveResponse(soap, tptz__RelativeMoveResponse, "tptz:RelativeMoveResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__SendAuxiliaryCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SendAuxiliaryCommand* tptz__SendAuxiliaryCommand, struct _tptz__SendAuxiliaryCommandResponse* tptz__SendAuxiliaryCommandResponse)
{
    if (soap_send___tptz__SendAuxiliaryCommand(soap, soap_endpoint, soap_action, tptz__SendAuxiliaryCommand) || soap_recv___tptz__SendAuxiliaryCommand(soap, tptz__SendAuxiliaryCommandResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__SendAuxiliaryCommand(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__SendAuxiliaryCommand* tptz__SendAuxiliaryCommand)
{
    struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SendAuxiliaryCommand";
    soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand = tptz__SendAuxiliaryCommand;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__SendAuxiliaryCommand(struct soap* soap, struct _tptz__SendAuxiliaryCommandResponse* tptz__SendAuxiliaryCommandResponse)
{
    if (!tptz__SendAuxiliaryCommandResponse)
        return soap_closesock(soap);
    soap_default__tptz__SendAuxiliaryCommandResponse(soap, tptz__SendAuxiliaryCommandResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__SendAuxiliaryCommandResponse(soap, tptz__SendAuxiliaryCommandResponse, "tptz:SendAuxiliaryCommandResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__AbsoluteMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__AbsoluteMove* tptz__AbsoluteMove, struct _tptz__AbsoluteMoveResponse* tptz__AbsoluteMoveResponse)
{
    if (soap_send___tptz__AbsoluteMove(soap, soap_endpoint, soap_action, tptz__AbsoluteMove) || soap_recv___tptz__AbsoluteMove(soap, tptz__AbsoluteMoveResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__AbsoluteMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__AbsoluteMove* tptz__AbsoluteMove)
{
    struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/AbsoluteMove";
    soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove = tptz__AbsoluteMove;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__AbsoluteMove(struct soap* soap, struct _tptz__AbsoluteMoveResponse* tptz__AbsoluteMoveResponse)
{
    if (!tptz__AbsoluteMoveResponse)
        return soap_closesock(soap);
    soap_default__tptz__AbsoluteMoveResponse(soap, tptz__AbsoluteMoveResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__AbsoluteMoveResponse(soap, tptz__AbsoluteMoveResponse, "tptz:AbsoluteMoveResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GeoMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GeoMove* tptz__GeoMove, struct _tptz__GeoMoveResponse* tptz__GeoMoveResponse)
{
    if (soap_send___tptz__GeoMove(soap, soap_endpoint, soap_action, tptz__GeoMove) || soap_recv___tptz__GeoMove(soap, tptz__GeoMoveResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GeoMove(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GeoMove* tptz__GeoMove)
{
    struct __tptz__GeoMove soap_tmp___tptz__GeoMove;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GeoMove";
    soap_tmp___tptz__GeoMove.tptz__GeoMove = tptz__GeoMove;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GeoMove(soap, &soap_tmp___tptz__GeoMove);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GeoMove(soap, &soap_tmp___tptz__GeoMove, "-tptz:GeoMove", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GeoMove(soap, &soap_tmp___tptz__GeoMove, "-tptz:GeoMove", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GeoMove(struct soap* soap, struct _tptz__GeoMoveResponse* tptz__GeoMoveResponse)
{
    if (!tptz__GeoMoveResponse)
        return soap_closesock(soap);
    soap_default__tptz__GeoMoveResponse(soap, tptz__GeoMoveResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GeoMoveResponse(soap, tptz__GeoMoveResponse, "tptz:GeoMoveResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__Stop(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__Stop* tptz__Stop, struct _tptz__StopResponse* tptz__StopResponse)
{
    if (soap_send___tptz__Stop(soap, soap_endpoint, soap_action, tptz__Stop) || soap_recv___tptz__Stop(soap, tptz__StopResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__Stop(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__Stop* tptz__Stop)
{
    struct __tptz__Stop soap_tmp___tptz__Stop;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/Stop";
    soap_tmp___tptz__Stop.tptz__Stop = tptz__Stop;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__Stop(soap, &soap_tmp___tptz__Stop);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__Stop(struct soap* soap, struct _tptz__StopResponse* tptz__StopResponse)
{
    if (!tptz__StopResponse)
        return soap_closesock(soap);
    soap_default__tptz__StopResponse(soap, tptz__StopResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__StopResponse(soap, tptz__StopResponse, "tptz:StopResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetPresetTours(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTours* tptz__GetPresetTours, struct _tptz__GetPresetToursResponse* tptz__GetPresetToursResponse)
{
    if (soap_send___tptz__GetPresetTours(soap, soap_endpoint, soap_action, tptz__GetPresetTours) || soap_recv___tptz__GetPresetTours(soap, tptz__GetPresetToursResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetPresetTours(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTours* tptz__GetPresetTours)
{
    struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTours";
    soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours = tptz__GetPresetTours;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetPresetTours(struct soap* soap, struct _tptz__GetPresetToursResponse* tptz__GetPresetToursResponse)
{
    if (!tptz__GetPresetToursResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetPresetToursResponse(soap, tptz__GetPresetToursResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetPresetToursResponse(soap, tptz__GetPresetToursResponse, "tptz:GetPresetToursResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetPresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTour* tptz__GetPresetTour, struct _tptz__GetPresetTourResponse* tptz__GetPresetTourResponse)
{
    if (soap_send___tptz__GetPresetTour(soap, soap_endpoint, soap_action, tptz__GetPresetTour) || soap_recv___tptz__GetPresetTour(soap, tptz__GetPresetTourResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetPresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTour* tptz__GetPresetTour)
{
    struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTour";
    soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour = tptz__GetPresetTour;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetPresetTour(struct soap* soap, struct _tptz__GetPresetTourResponse* tptz__GetPresetTourResponse)
{
    if (!tptz__GetPresetTourResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetPresetTourResponse(soap, tptz__GetPresetTourResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetPresetTourResponse(soap, tptz__GetPresetTourResponse, "tptz:GetPresetTourResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetPresetTourOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTourOptions* tptz__GetPresetTourOptions, struct _tptz__GetPresetTourOptionsResponse* tptz__GetPresetTourOptionsResponse)
{
    if (soap_send___tptz__GetPresetTourOptions(soap, soap_endpoint, soap_action, tptz__GetPresetTourOptions) || soap_recv___tptz__GetPresetTourOptions(soap, tptz__GetPresetTourOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetPresetTourOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetPresetTourOptions* tptz__GetPresetTourOptions)
{
    struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTourOptions";
    soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions = tptz__GetPresetTourOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetPresetTourOptions(struct soap* soap, struct _tptz__GetPresetTourOptionsResponse* tptz__GetPresetTourOptionsResponse)
{
    if (!tptz__GetPresetTourOptionsResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetPresetTourOptionsResponse(soap, tptz__GetPresetTourOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetPresetTourOptionsResponse(soap, tptz__GetPresetTourOptionsResponse, "tptz:GetPresetTourOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__CreatePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__CreatePresetTour* tptz__CreatePresetTour, struct _tptz__CreatePresetTourResponse* tptz__CreatePresetTourResponse)
{
    if (soap_send___tptz__CreatePresetTour(soap, soap_endpoint, soap_action, tptz__CreatePresetTour) || soap_recv___tptz__CreatePresetTour(soap, tptz__CreatePresetTourResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__CreatePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__CreatePresetTour* tptz__CreatePresetTour)
{
    struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/CreatePresetTour";
    soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour = tptz__CreatePresetTour;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__CreatePresetTour(struct soap* soap, struct _tptz__CreatePresetTourResponse* tptz__CreatePresetTourResponse)
{
    if (!tptz__CreatePresetTourResponse)
        return soap_closesock(soap);
    soap_default__tptz__CreatePresetTourResponse(soap, tptz__CreatePresetTourResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__CreatePresetTourResponse(soap, tptz__CreatePresetTourResponse, "tptz:CreatePresetTourResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__ModifyPresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__ModifyPresetTour* tptz__ModifyPresetTour, struct _tptz__ModifyPresetTourResponse* tptz__ModifyPresetTourResponse)
{
    if (soap_send___tptz__ModifyPresetTour(soap, soap_endpoint, soap_action, tptz__ModifyPresetTour) || soap_recv___tptz__ModifyPresetTour(soap, tptz__ModifyPresetTourResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__ModifyPresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__ModifyPresetTour* tptz__ModifyPresetTour)
{
    struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ModifyPresetTour";
    soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour = tptz__ModifyPresetTour;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__ModifyPresetTour(struct soap* soap, struct _tptz__ModifyPresetTourResponse* tptz__ModifyPresetTourResponse)
{
    if (!tptz__ModifyPresetTourResponse)
        return soap_closesock(soap);
    soap_default__tptz__ModifyPresetTourResponse(soap, tptz__ModifyPresetTourResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__ModifyPresetTourResponse(soap, tptz__ModifyPresetTourResponse, "tptz:ModifyPresetTourResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__OperatePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__OperatePresetTour* tptz__OperatePresetTour, struct _tptz__OperatePresetTourResponse* tptz__OperatePresetTourResponse)
{
    if (soap_send___tptz__OperatePresetTour(soap, soap_endpoint, soap_action, tptz__OperatePresetTour) || soap_recv___tptz__OperatePresetTour(soap, tptz__OperatePresetTourResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__OperatePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__OperatePresetTour* tptz__OperatePresetTour)
{
    struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/OperatePresetTour";
    soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour = tptz__OperatePresetTour;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__OperatePresetTour(struct soap* soap, struct _tptz__OperatePresetTourResponse* tptz__OperatePresetTourResponse)
{
    if (!tptz__OperatePresetTourResponse)
        return soap_closesock(soap);
    soap_default__tptz__OperatePresetTourResponse(soap, tptz__OperatePresetTourResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__OperatePresetTourResponse(soap, tptz__OperatePresetTourResponse, "tptz:OperatePresetTourResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__RemovePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RemovePresetTour* tptz__RemovePresetTour, struct _tptz__RemovePresetTourResponse* tptz__RemovePresetTourResponse)
{
    if (soap_send___tptz__RemovePresetTour(soap, soap_endpoint, soap_action, tptz__RemovePresetTour) || soap_recv___tptz__RemovePresetTour(soap, tptz__RemovePresetTourResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__RemovePresetTour(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__RemovePresetTour* tptz__RemovePresetTour)
{
    struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePresetTour";
    soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour = tptz__RemovePresetTour;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__RemovePresetTour(struct soap* soap, struct _tptz__RemovePresetTourResponse* tptz__RemovePresetTourResponse)
{
    if (!tptz__RemovePresetTourResponse)
        return soap_closesock(soap);
    soap_default__tptz__RemovePresetTourResponse(soap, tptz__RemovePresetTourResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__RemovePresetTourResponse(soap, tptz__RemovePresetTourResponse, "tptz:RemovePresetTourResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___tptz__GetCompatibleConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetCompatibleConfigurations* tptz__GetCompatibleConfigurations, struct _tptz__GetCompatibleConfigurationsResponse* tptz__GetCompatibleConfigurationsResponse)
{
    if (soap_send___tptz__GetCompatibleConfigurations(soap, soap_endpoint, soap_action, tptz__GetCompatibleConfigurations) || soap_recv___tptz__GetCompatibleConfigurations(soap, tptz__GetCompatibleConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___tptz__GetCompatibleConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _tptz__GetCompatibleConfigurations* tptz__GetCompatibleConfigurations)
{
    struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetCompatibleConfigurations";
    soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations = tptz__GetCompatibleConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___tptz__GetCompatibleConfigurations(struct soap* soap, struct _tptz__GetCompatibleConfigurationsResponse* tptz__GetCompatibleConfigurationsResponse)
{
    if (!tptz__GetCompatibleConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__tptz__GetCompatibleConfigurationsResponse(soap, tptz__GetCompatibleConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__tptz__GetCompatibleConfigurationsResponse(soap, tptz__GetCompatibleConfigurationsResponse, "tptz:GetCompatibleConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetServiceCapabilities* trt__GetServiceCapabilities, struct _trt__GetServiceCapabilitiesResponse* trt__GetServiceCapabilitiesResponse)
{
    if (soap_send___trt__GetServiceCapabilities(soap, soap_endpoint, soap_action, trt__GetServiceCapabilities) || soap_recv___trt__GetServiceCapabilities(soap, trt__GetServiceCapabilitiesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetServiceCapabilities(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetServiceCapabilities* trt__GetServiceCapabilities)
{
    struct __trt__GetServiceCapabilities soap_tmp___trt__GetServiceCapabilities;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities";
    soap_tmp___trt__GetServiceCapabilities.trt__GetServiceCapabilities = trt__GetServiceCapabilities;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt:GetServiceCapabilities", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt:GetServiceCapabilities", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetServiceCapabilities(struct soap* soap, struct _trt__GetServiceCapabilitiesResponse* trt__GetServiceCapabilitiesResponse)
{
    if (!trt__GetServiceCapabilitiesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetServiceCapabilitiesResponse(soap, trt__GetServiceCapabilitiesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetServiceCapabilitiesResponse(soap, trt__GetServiceCapabilitiesResponse, "trt:GetServiceCapabilitiesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSources* trt__GetVideoSources, struct _trt__GetVideoSourcesResponse* trt__GetVideoSourcesResponse)
{
    if (soap_send___trt__GetVideoSources(soap, soap_endpoint, soap_action, trt__GetVideoSources) || soap_recv___trt__GetVideoSources(soap, trt__GetVideoSourcesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSources* trt__GetVideoSources)
{
    struct __trt__GetVideoSources soap_tmp___trt__GetVideoSources;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSources/";
    soap_tmp___trt__GetVideoSources.trt__GetVideoSources = trt__GetVideoSources;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoSources(struct soap* soap, struct _trt__GetVideoSourcesResponse* trt__GetVideoSourcesResponse)
{
    if (!trt__GetVideoSourcesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoSourcesResponse(soap, trt__GetVideoSourcesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoSourcesResponse(soap, trt__GetVideoSourcesResponse, "trt:GetVideoSourcesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSources* trt__GetAudioSources, struct _trt__GetAudioSourcesResponse* trt__GetAudioSourcesResponse)
{
    if (soap_send___trt__GetAudioSources(soap, soap_endpoint, soap_action, trt__GetAudioSources) || soap_recv___trt__GetAudioSources(soap, trt__GetAudioSourcesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioSources(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSources* trt__GetAudioSources)
{
    struct __trt__GetAudioSources soap_tmp___trt__GetAudioSources;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSources";
    soap_tmp___trt__GetAudioSources.trt__GetAudioSources = trt__GetAudioSources;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioSources(struct soap* soap, struct _trt__GetAudioSourcesResponse* trt__GetAudioSourcesResponse)
{
    if (!trt__GetAudioSourcesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioSourcesResponse(soap, trt__GetAudioSourcesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioSourcesResponse(soap, trt__GetAudioSourcesResponse, "trt:GetAudioSourcesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputs* trt__GetAudioOutputs, struct _trt__GetAudioOutputsResponse* trt__GetAudioOutputsResponse)
{
    if (soap_send___trt__GetAudioOutputs(soap, soap_endpoint, soap_action, trt__GetAudioOutputs) || soap_recv___trt__GetAudioOutputs(soap, trt__GetAudioOutputsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioOutputs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputs* trt__GetAudioOutputs)
{
    struct __trt__GetAudioOutputs soap_tmp___trt__GetAudioOutputs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs";
    soap_tmp___trt__GetAudioOutputs.trt__GetAudioOutputs = trt__GetAudioOutputs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioOutputs(struct soap* soap, struct _trt__GetAudioOutputsResponse* trt__GetAudioOutputsResponse)
{
    if (!trt__GetAudioOutputsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioOutputsResponse(soap, trt__GetAudioOutputsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioOutputsResponse(soap, trt__GetAudioOutputsResponse, "trt:GetAudioOutputsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__CreateProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__CreateProfile* trt__CreateProfile, struct _trt__CreateProfileResponse* trt__CreateProfileResponse)
{
    if (soap_send___trt__CreateProfile(soap, soap_endpoint, soap_action, trt__CreateProfile) || soap_recv___trt__CreateProfile(soap, trt__CreateProfileResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__CreateProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__CreateProfile* trt__CreateProfile)
{
    struct __trt__CreateProfile soap_tmp___trt__CreateProfile;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateProfile";
    soap_tmp___trt__CreateProfile.trt__CreateProfile = trt__CreateProfile;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__CreateProfile(struct soap* soap, struct _trt__CreateProfileResponse* trt__CreateProfileResponse)
{
    if (!trt__CreateProfileResponse)
        return soap_closesock(soap);
    soap_default__trt__CreateProfileResponse(soap, trt__CreateProfileResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__CreateProfileResponse(soap, trt__CreateProfileResponse, "trt:CreateProfileResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetProfile* trt__GetProfile, struct _trt__GetProfileResponse* trt__GetProfileResponse)
{
    if (soap_send___trt__GetProfile(soap, soap_endpoint, soap_action, trt__GetProfile) || soap_recv___trt__GetProfile(soap, trt__GetProfileResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetProfile* trt__GetProfile)
{
    struct __trt__GetProfile soap_tmp___trt__GetProfile;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdlGetProfile/";
    soap_tmp___trt__GetProfile.trt__GetProfile = trt__GetProfile;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetProfile(soap, &soap_tmp___trt__GetProfile);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetProfile(struct soap* soap, struct _trt__GetProfileResponse* trt__GetProfileResponse)
{
    if (!trt__GetProfileResponse)
        return soap_closesock(soap);
    soap_default__trt__GetProfileResponse(soap, trt__GetProfileResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetProfileResponse(soap, trt__GetProfileResponse, "trt:GetProfileResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetProfiles(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetProfiles* trt__GetProfiles, struct _trt__GetProfilesResponse* trt__GetProfilesResponse)
{
    if (soap_send___trt__GetProfiles(soap, soap_endpoint, soap_action, trt__GetProfiles) || soap_recv___trt__GetProfiles(soap, trt__GetProfilesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetProfiles(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetProfiles* trt__GetProfiles)
{
    struct __trt__GetProfiles soap_tmp___trt__GetProfiles;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetProfiles";
    soap_tmp___trt__GetProfiles.trt__GetProfiles = trt__GetProfiles;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetProfiles(struct soap* soap, struct _trt__GetProfilesResponse* trt__GetProfilesResponse)
{
    if (!trt__GetProfilesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetProfilesResponse(soap, trt__GetProfilesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetProfilesResponse(soap, trt__GetProfilesResponse, "trt:GetProfilesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoEncoderConfiguration* trt__AddVideoEncoderConfiguration, struct _trt__AddVideoEncoderConfigurationResponse* trt__AddVideoEncoderConfigurationResponse)
{
    if (soap_send___trt__AddVideoEncoderConfiguration(soap, soap_endpoint, soap_action, trt__AddVideoEncoderConfiguration) || soap_recv___trt__AddVideoEncoderConfiguration(soap, trt__AddVideoEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoEncoderConfiguration* trt__AddVideoEncoderConfiguration)
{
    struct __trt__AddVideoEncoderConfiguration soap_tmp___trt__AddVideoEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration";
    soap_tmp___trt__AddVideoEncoderConfiguration.trt__AddVideoEncoderConfiguration = trt__AddVideoEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddVideoEncoderConfiguration(struct soap* soap, struct _trt__AddVideoEncoderConfigurationResponse* trt__AddVideoEncoderConfigurationResponse)
{
    if (!trt__AddVideoEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddVideoEncoderConfigurationResponse(soap, trt__AddVideoEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddVideoEncoderConfigurationResponse(soap, trt__AddVideoEncoderConfigurationResponse, "trt:AddVideoEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoSourceConfiguration* trt__AddVideoSourceConfiguration, struct _trt__AddVideoSourceConfigurationResponse* trt__AddVideoSourceConfigurationResponse)
{
    if (soap_send___trt__AddVideoSourceConfiguration(soap, soap_endpoint, soap_action, trt__AddVideoSourceConfiguration) || soap_recv___trt__AddVideoSourceConfiguration(soap, trt__AddVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoSourceConfiguration* trt__AddVideoSourceConfiguration)
{
    struct __trt__AddVideoSourceConfiguration soap_tmp___trt__AddVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration";
    soap_tmp___trt__AddVideoSourceConfiguration.trt__AddVideoSourceConfiguration = trt__AddVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddVideoSourceConfiguration(struct soap* soap, struct _trt__AddVideoSourceConfigurationResponse* trt__AddVideoSourceConfigurationResponse)
{
    if (!trt__AddVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddVideoSourceConfigurationResponse(soap, trt__AddVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddVideoSourceConfigurationResponse(soap, trt__AddVideoSourceConfigurationResponse, "trt:AddVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioEncoderConfiguration* trt__AddAudioEncoderConfiguration, struct _trt__AddAudioEncoderConfigurationResponse* trt__AddAudioEncoderConfigurationResponse)
{
    if (soap_send___trt__AddAudioEncoderConfiguration(soap, soap_endpoint, soap_action, trt__AddAudioEncoderConfiguration) || soap_recv___trt__AddAudioEncoderConfiguration(soap, trt__AddAudioEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioEncoderConfiguration* trt__AddAudioEncoderConfiguration)
{
    struct __trt__AddAudioEncoderConfiguration soap_tmp___trt__AddAudioEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration";
    soap_tmp___trt__AddAudioEncoderConfiguration.trt__AddAudioEncoderConfiguration = trt__AddAudioEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddAudioEncoderConfiguration(struct soap* soap, struct _trt__AddAudioEncoderConfigurationResponse* trt__AddAudioEncoderConfigurationResponse)
{
    if (!trt__AddAudioEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddAudioEncoderConfigurationResponse(soap, trt__AddAudioEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddAudioEncoderConfigurationResponse(soap, trt__AddAudioEncoderConfigurationResponse, "trt:AddAudioEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioSourceConfiguration* trt__AddAudioSourceConfiguration, struct _trt__AddAudioSourceConfigurationResponse* trt__AddAudioSourceConfigurationResponse)
{
    if (soap_send___trt__AddAudioSourceConfiguration(soap, soap_endpoint, soap_action, trt__AddAudioSourceConfiguration) || soap_recv___trt__AddAudioSourceConfiguration(soap, trt__AddAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioSourceConfiguration* trt__AddAudioSourceConfiguration)
{
    struct __trt__AddAudioSourceConfiguration soap_tmp___trt__AddAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration";
    soap_tmp___trt__AddAudioSourceConfiguration.trt__AddAudioSourceConfiguration = trt__AddAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddAudioSourceConfiguration(struct soap* soap, struct _trt__AddAudioSourceConfigurationResponse* trt__AddAudioSourceConfigurationResponse)
{
    if (!trt__AddAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddAudioSourceConfigurationResponse(soap, trt__AddAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddAudioSourceConfigurationResponse(soap, trt__AddAudioSourceConfigurationResponse, "trt:AddAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddPTZConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddPTZConfiguration* trt__AddPTZConfiguration, struct _trt__AddPTZConfigurationResponse* trt__AddPTZConfigurationResponse)
{
    if (soap_send___trt__AddPTZConfiguration(soap, soap_endpoint, soap_action, trt__AddPTZConfiguration) || soap_recv___trt__AddPTZConfiguration(soap, trt__AddPTZConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddPTZConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddPTZConfiguration* trt__AddPTZConfiguration)
{
    struct __trt__AddPTZConfiguration soap_tmp___trt__AddPTZConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration";
    soap_tmp___trt__AddPTZConfiguration.trt__AddPTZConfiguration = trt__AddPTZConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddPTZConfiguration(struct soap* soap, struct _trt__AddPTZConfigurationResponse* trt__AddPTZConfigurationResponse)
{
    if (!trt__AddPTZConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddPTZConfigurationResponse(soap, trt__AddPTZConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddPTZConfigurationResponse(soap, trt__AddPTZConfigurationResponse, "trt:AddPTZConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoAnalyticsConfiguration* trt__AddVideoAnalyticsConfiguration, struct _trt__AddVideoAnalyticsConfigurationResponse* trt__AddVideoAnalyticsConfigurationResponse)
{
    if (soap_send___trt__AddVideoAnalyticsConfiguration(soap, soap_endpoint, soap_action, trt__AddVideoAnalyticsConfiguration) || soap_recv___trt__AddVideoAnalyticsConfiguration(soap, trt__AddVideoAnalyticsConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddVideoAnalyticsConfiguration* trt__AddVideoAnalyticsConfiguration)
{
    struct __trt__AddVideoAnalyticsConfiguration soap_tmp___trt__AddVideoAnalyticsConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration";
    soap_tmp___trt__AddVideoAnalyticsConfiguration.trt__AddVideoAnalyticsConfiguration = trt__AddVideoAnalyticsConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddVideoAnalyticsConfiguration(struct soap* soap, struct _trt__AddVideoAnalyticsConfigurationResponse* trt__AddVideoAnalyticsConfigurationResponse)
{
    if (!trt__AddVideoAnalyticsConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddVideoAnalyticsConfigurationResponse(soap, trt__AddVideoAnalyticsConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddVideoAnalyticsConfigurationResponse(soap, trt__AddVideoAnalyticsConfigurationResponse, "trt:AddVideoAnalyticsConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddMetadataConfiguration* trt__AddMetadataConfiguration, struct _trt__AddMetadataConfigurationResponse* trt__AddMetadataConfigurationResponse)
{
    if (soap_send___trt__AddMetadataConfiguration(soap, soap_endpoint, soap_action, trt__AddMetadataConfiguration) || soap_recv___trt__AddMetadataConfiguration(soap, trt__AddMetadataConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddMetadataConfiguration* trt__AddMetadataConfiguration)
{
    struct __trt__AddMetadataConfiguration soap_tmp___trt__AddMetadataConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration";
    soap_tmp___trt__AddMetadataConfiguration.trt__AddMetadataConfiguration = trt__AddMetadataConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddMetadataConfiguration(struct soap* soap, struct _trt__AddMetadataConfigurationResponse* trt__AddMetadataConfigurationResponse)
{
    if (!trt__AddMetadataConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddMetadataConfigurationResponse(soap, trt__AddMetadataConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddMetadataConfigurationResponse(soap, trt__AddMetadataConfigurationResponse, "trt:AddMetadataConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioOutputConfiguration* trt__AddAudioOutputConfiguration, struct _trt__AddAudioOutputConfigurationResponse* trt__AddAudioOutputConfigurationResponse)
{
    if (soap_send___trt__AddAudioOutputConfiguration(soap, soap_endpoint, soap_action, trt__AddAudioOutputConfiguration) || soap_recv___trt__AddAudioOutputConfiguration(soap, trt__AddAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioOutputConfiguration* trt__AddAudioOutputConfiguration)
{
    struct __trt__AddAudioOutputConfiguration soap_tmp___trt__AddAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration";
    soap_tmp___trt__AddAudioOutputConfiguration.trt__AddAudioOutputConfiguration = trt__AddAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddAudioOutputConfiguration(struct soap* soap, struct _trt__AddAudioOutputConfigurationResponse* trt__AddAudioOutputConfigurationResponse)
{
    if (!trt__AddAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddAudioOutputConfigurationResponse(soap, trt__AddAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddAudioOutputConfigurationResponse(soap, trt__AddAudioOutputConfigurationResponse, "trt:AddAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__AddAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioDecoderConfiguration* trt__AddAudioDecoderConfiguration, struct _trt__AddAudioDecoderConfigurationResponse* trt__AddAudioDecoderConfigurationResponse)
{
    if (soap_send___trt__AddAudioDecoderConfiguration(soap, soap_endpoint, soap_action, trt__AddAudioDecoderConfiguration) || soap_recv___trt__AddAudioDecoderConfiguration(soap, trt__AddAudioDecoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__AddAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__AddAudioDecoderConfiguration* trt__AddAudioDecoderConfiguration)
{
    struct __trt__AddAudioDecoderConfiguration soap_tmp___trt__AddAudioDecoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration";
    soap_tmp___trt__AddAudioDecoderConfiguration.trt__AddAudioDecoderConfiguration = trt__AddAudioDecoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__AddAudioDecoderConfiguration(struct soap* soap, struct _trt__AddAudioDecoderConfigurationResponse* trt__AddAudioDecoderConfigurationResponse)
{
    if (!trt__AddAudioDecoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__AddAudioDecoderConfigurationResponse(soap, trt__AddAudioDecoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__AddAudioDecoderConfigurationResponse(soap, trt__AddAudioDecoderConfigurationResponse, "trt:AddAudioDecoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoEncoderConfiguration* trt__RemoveVideoEncoderConfiguration, struct _trt__RemoveVideoEncoderConfigurationResponse* trt__RemoveVideoEncoderConfigurationResponse)
{
    if (soap_send___trt__RemoveVideoEncoderConfiguration(soap, soap_endpoint, soap_action, trt__RemoveVideoEncoderConfiguration) || soap_recv___trt__RemoveVideoEncoderConfiguration(soap, trt__RemoveVideoEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoEncoderConfiguration* trt__RemoveVideoEncoderConfiguration)
{
    struct __trt__RemoveVideoEncoderConfiguration soap_tmp___trt__RemoveVideoEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration";
    soap_tmp___trt__RemoveVideoEncoderConfiguration.trt__RemoveVideoEncoderConfiguration = trt__RemoveVideoEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveVideoEncoderConfiguration(struct soap* soap, struct _trt__RemoveVideoEncoderConfigurationResponse* trt__RemoveVideoEncoderConfigurationResponse)
{
    if (!trt__RemoveVideoEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveVideoEncoderConfigurationResponse(soap, trt__RemoveVideoEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveVideoEncoderConfigurationResponse(soap, trt__RemoveVideoEncoderConfigurationResponse, "trt:RemoveVideoEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoSourceConfiguration* trt__RemoveVideoSourceConfiguration, struct _trt__RemoveVideoSourceConfigurationResponse* trt__RemoveVideoSourceConfigurationResponse)
{
    if (soap_send___trt__RemoveVideoSourceConfiguration(soap, soap_endpoint, soap_action, trt__RemoveVideoSourceConfiguration) || soap_recv___trt__RemoveVideoSourceConfiguration(soap, trt__RemoveVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoSourceConfiguration* trt__RemoveVideoSourceConfiguration)
{
    struct __trt__RemoveVideoSourceConfiguration soap_tmp___trt__RemoveVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration";
    soap_tmp___trt__RemoveVideoSourceConfiguration.trt__RemoveVideoSourceConfiguration = trt__RemoveVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveVideoSourceConfiguration(struct soap* soap, struct _trt__RemoveVideoSourceConfigurationResponse* trt__RemoveVideoSourceConfigurationResponse)
{
    if (!trt__RemoveVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveVideoSourceConfigurationResponse(soap, trt__RemoveVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveVideoSourceConfigurationResponse(soap, trt__RemoveVideoSourceConfigurationResponse, "trt:RemoveVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioEncoderConfiguration* trt__RemoveAudioEncoderConfiguration, struct _trt__RemoveAudioEncoderConfigurationResponse* trt__RemoveAudioEncoderConfigurationResponse)
{
    if (soap_send___trt__RemoveAudioEncoderConfiguration(soap, soap_endpoint, soap_action, trt__RemoveAudioEncoderConfiguration) || soap_recv___trt__RemoveAudioEncoderConfiguration(soap, trt__RemoveAudioEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioEncoderConfiguration* trt__RemoveAudioEncoderConfiguration)
{
    struct __trt__RemoveAudioEncoderConfiguration soap_tmp___trt__RemoveAudioEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration";
    soap_tmp___trt__RemoveAudioEncoderConfiguration.trt__RemoveAudioEncoderConfiguration = trt__RemoveAudioEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveAudioEncoderConfiguration(struct soap* soap, struct _trt__RemoveAudioEncoderConfigurationResponse* trt__RemoveAudioEncoderConfigurationResponse)
{
    if (!trt__RemoveAudioEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveAudioEncoderConfigurationResponse(soap, trt__RemoveAudioEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveAudioEncoderConfigurationResponse(soap, trt__RemoveAudioEncoderConfigurationResponse, "trt:RemoveAudioEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioSourceConfiguration* trt__RemoveAudioSourceConfiguration, struct _trt__RemoveAudioSourceConfigurationResponse* trt__RemoveAudioSourceConfigurationResponse)
{
    if (soap_send___trt__RemoveAudioSourceConfiguration(soap, soap_endpoint, soap_action, trt__RemoveAudioSourceConfiguration) || soap_recv___trt__RemoveAudioSourceConfiguration(soap, trt__RemoveAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioSourceConfiguration* trt__RemoveAudioSourceConfiguration)
{
    struct __trt__RemoveAudioSourceConfiguration soap_tmp___trt__RemoveAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration";
    soap_tmp___trt__RemoveAudioSourceConfiguration.trt__RemoveAudioSourceConfiguration = trt__RemoveAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveAudioSourceConfiguration(struct soap* soap, struct _trt__RemoveAudioSourceConfigurationResponse* trt__RemoveAudioSourceConfigurationResponse)
{
    if (!trt__RemoveAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveAudioSourceConfigurationResponse(soap, trt__RemoveAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveAudioSourceConfigurationResponse(soap, trt__RemoveAudioSourceConfigurationResponse, "trt:RemoveAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemovePTZConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemovePTZConfiguration* trt__RemovePTZConfiguration, struct _trt__RemovePTZConfigurationResponse* trt__RemovePTZConfigurationResponse)
{
    if (soap_send___trt__RemovePTZConfiguration(soap, soap_endpoint, soap_action, trt__RemovePTZConfiguration) || soap_recv___trt__RemovePTZConfiguration(soap, trt__RemovePTZConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemovePTZConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemovePTZConfiguration* trt__RemovePTZConfiguration)
{
    struct __trt__RemovePTZConfiguration soap_tmp___trt__RemovePTZConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration";
    soap_tmp___trt__RemovePTZConfiguration.trt__RemovePTZConfiguration = trt__RemovePTZConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemovePTZConfiguration(struct soap* soap, struct _trt__RemovePTZConfigurationResponse* trt__RemovePTZConfigurationResponse)
{
    if (!trt__RemovePTZConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemovePTZConfigurationResponse(soap, trt__RemovePTZConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemovePTZConfigurationResponse(soap, trt__RemovePTZConfigurationResponse, "trt:RemovePTZConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoAnalyticsConfiguration* trt__RemoveVideoAnalyticsConfiguration, struct _trt__RemoveVideoAnalyticsConfigurationResponse* trt__RemoveVideoAnalyticsConfigurationResponse)
{
    if (soap_send___trt__RemoveVideoAnalyticsConfiguration(soap, soap_endpoint, soap_action, trt__RemoveVideoAnalyticsConfiguration) || soap_recv___trt__RemoveVideoAnalyticsConfiguration(soap, trt__RemoveVideoAnalyticsConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveVideoAnalyticsConfiguration* trt__RemoveVideoAnalyticsConfiguration)
{
    struct __trt__RemoveVideoAnalyticsConfiguration soap_tmp___trt__RemoveVideoAnalyticsConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration";
    soap_tmp___trt__RemoveVideoAnalyticsConfiguration.trt__RemoveVideoAnalyticsConfiguration = trt__RemoveVideoAnalyticsConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveVideoAnalyticsConfiguration(struct soap* soap, struct _trt__RemoveVideoAnalyticsConfigurationResponse* trt__RemoveVideoAnalyticsConfigurationResponse)
{
    if (!trt__RemoveVideoAnalyticsConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveVideoAnalyticsConfigurationResponse(soap, trt__RemoveVideoAnalyticsConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveVideoAnalyticsConfigurationResponse(soap, trt__RemoveVideoAnalyticsConfigurationResponse, "trt:RemoveVideoAnalyticsConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveMetadataConfiguration* trt__RemoveMetadataConfiguration, struct _trt__RemoveMetadataConfigurationResponse* trt__RemoveMetadataConfigurationResponse)
{
    if (soap_send___trt__RemoveMetadataConfiguration(soap, soap_endpoint, soap_action, trt__RemoveMetadataConfiguration) || soap_recv___trt__RemoveMetadataConfiguration(soap, trt__RemoveMetadataConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveMetadataConfiguration* trt__RemoveMetadataConfiguration)
{
    struct __trt__RemoveMetadataConfiguration soap_tmp___trt__RemoveMetadataConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration";
    soap_tmp___trt__RemoveMetadataConfiguration.trt__RemoveMetadataConfiguration = trt__RemoveMetadataConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveMetadataConfiguration(struct soap* soap, struct _trt__RemoveMetadataConfigurationResponse* trt__RemoveMetadataConfigurationResponse)
{
    if (!trt__RemoveMetadataConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveMetadataConfigurationResponse(soap, trt__RemoveMetadataConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveMetadataConfigurationResponse(soap, trt__RemoveMetadataConfigurationResponse, "trt:RemoveMetadataConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioOutputConfiguration* trt__RemoveAudioOutputConfiguration, struct _trt__RemoveAudioOutputConfigurationResponse* trt__RemoveAudioOutputConfigurationResponse)
{
    if (soap_send___trt__RemoveAudioOutputConfiguration(soap, soap_endpoint, soap_action, trt__RemoveAudioOutputConfiguration) || soap_recv___trt__RemoveAudioOutputConfiguration(soap, trt__RemoveAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioOutputConfiguration* trt__RemoveAudioOutputConfiguration)
{
    struct __trt__RemoveAudioOutputConfiguration soap_tmp___trt__RemoveAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration";
    soap_tmp___trt__RemoveAudioOutputConfiguration.trt__RemoveAudioOutputConfiguration = trt__RemoveAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveAudioOutputConfiguration(struct soap* soap, struct _trt__RemoveAudioOutputConfigurationResponse* trt__RemoveAudioOutputConfigurationResponse)
{
    if (!trt__RemoveAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveAudioOutputConfigurationResponse(soap, trt__RemoveAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveAudioOutputConfigurationResponse(soap, trt__RemoveAudioOutputConfigurationResponse, "trt:RemoveAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__RemoveAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioDecoderConfiguration* trt__RemoveAudioDecoderConfiguration, struct _trt__RemoveAudioDecoderConfigurationResponse* trt__RemoveAudioDecoderConfigurationResponse)
{
    if (soap_send___trt__RemoveAudioDecoderConfiguration(soap, soap_endpoint, soap_action, trt__RemoveAudioDecoderConfiguration) || soap_recv___trt__RemoveAudioDecoderConfiguration(soap, trt__RemoveAudioDecoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__RemoveAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__RemoveAudioDecoderConfiguration* trt__RemoveAudioDecoderConfiguration)
{
    struct __trt__RemoveAudioDecoderConfiguration soap_tmp___trt__RemoveAudioDecoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration";
    soap_tmp___trt__RemoveAudioDecoderConfiguration.trt__RemoveAudioDecoderConfiguration = trt__RemoveAudioDecoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__RemoveAudioDecoderConfiguration(struct soap* soap, struct _trt__RemoveAudioDecoderConfigurationResponse* trt__RemoveAudioDecoderConfigurationResponse)
{
    if (!trt__RemoveAudioDecoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__RemoveAudioDecoderConfigurationResponse(soap, trt__RemoveAudioDecoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__RemoveAudioDecoderConfigurationResponse(soap, trt__RemoveAudioDecoderConfigurationResponse, "trt:RemoveAudioDecoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__DeleteProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__DeleteProfile* trt__DeleteProfile, struct _trt__DeleteProfileResponse* trt__DeleteProfileResponse)
{
    if (soap_send___trt__DeleteProfile(soap, soap_endpoint, soap_action, trt__DeleteProfile) || soap_recv___trt__DeleteProfile(soap, trt__DeleteProfileResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__DeleteProfile(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__DeleteProfile* trt__DeleteProfile)
{
    struct __trt__DeleteProfile soap_tmp___trt__DeleteProfile;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteProfile";
    soap_tmp___trt__DeleteProfile.trt__DeleteProfile = trt__DeleteProfile;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__DeleteProfile(struct soap* soap, struct _trt__DeleteProfileResponse* trt__DeleteProfileResponse)
{
    if (!trt__DeleteProfileResponse)
        return soap_closesock(soap);
    soap_default__trt__DeleteProfileResponse(soap, trt__DeleteProfileResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__DeleteProfileResponse(soap, trt__DeleteProfileResponse, "trt:DeleteProfileResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfigurations* trt__GetVideoSourceConfigurations, struct _trt__GetVideoSourceConfigurationsResponse* trt__GetVideoSourceConfigurationsResponse)
{
    if (soap_send___trt__GetVideoSourceConfigurations(soap, soap_endpoint, soap_action, trt__GetVideoSourceConfigurations) || soap_recv___trt__GetVideoSourceConfigurations(soap, trt__GetVideoSourceConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfigurations* trt__GetVideoSourceConfigurations)
{
    struct __trt__GetVideoSourceConfigurations soap_tmp___trt__GetVideoSourceConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations";
    soap_tmp___trt__GetVideoSourceConfigurations.trt__GetVideoSourceConfigurations = trt__GetVideoSourceConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoSourceConfigurations(struct soap* soap, struct _trt__GetVideoSourceConfigurationsResponse* trt__GetVideoSourceConfigurationsResponse)
{
    if (!trt__GetVideoSourceConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoSourceConfigurationsResponse(soap, trt__GetVideoSourceConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoSourceConfigurationsResponse(soap, trt__GetVideoSourceConfigurationsResponse, "trt:GetVideoSourceConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfigurations* trt__GetVideoEncoderConfigurations, struct _trt__GetVideoEncoderConfigurationsResponse* trt__GetVideoEncoderConfigurationsResponse)
{
    if (soap_send___trt__GetVideoEncoderConfigurations(soap, soap_endpoint, soap_action, trt__GetVideoEncoderConfigurations) || soap_recv___trt__GetVideoEncoderConfigurations(soap, trt__GetVideoEncoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfigurations* trt__GetVideoEncoderConfigurations)
{
    struct __trt__GetVideoEncoderConfigurations soap_tmp___trt__GetVideoEncoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations";
    soap_tmp___trt__GetVideoEncoderConfigurations.trt__GetVideoEncoderConfigurations = trt__GetVideoEncoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoEncoderConfigurations(struct soap* soap, struct _trt__GetVideoEncoderConfigurationsResponse* trt__GetVideoEncoderConfigurationsResponse)
{
    if (!trt__GetVideoEncoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoEncoderConfigurationsResponse(soap, trt__GetVideoEncoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoEncoderConfigurationsResponse(soap, trt__GetVideoEncoderConfigurationsResponse, "trt:GetVideoEncoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfigurations* trt__GetAudioSourceConfigurations, struct _trt__GetAudioSourceConfigurationsResponse* trt__GetAudioSourceConfigurationsResponse)
{
    if (soap_send___trt__GetAudioSourceConfigurations(soap, soap_endpoint, soap_action, trt__GetAudioSourceConfigurations) || soap_recv___trt__GetAudioSourceConfigurations(soap, trt__GetAudioSourceConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfigurations* trt__GetAudioSourceConfigurations)
{
    struct __trt__GetAudioSourceConfigurations soap_tmp___trt__GetAudioSourceConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdlGetAudioSourceConfigurations/";
    soap_tmp___trt__GetAudioSourceConfigurations.trt__GetAudioSourceConfigurations = trt__GetAudioSourceConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioSourceConfigurations(struct soap* soap, struct _trt__GetAudioSourceConfigurationsResponse* trt__GetAudioSourceConfigurationsResponse)
{
    if (!trt__GetAudioSourceConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioSourceConfigurationsResponse(soap, trt__GetAudioSourceConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioSourceConfigurationsResponse(soap, trt__GetAudioSourceConfigurationsResponse, "trt:GetAudioSourceConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfigurations* trt__GetAudioEncoderConfigurations, struct _trt__GetAudioEncoderConfigurationsResponse* trt__GetAudioEncoderConfigurationsResponse)
{
    if (soap_send___trt__GetAudioEncoderConfigurations(soap, soap_endpoint, soap_action, trt__GetAudioEncoderConfigurations) || soap_recv___trt__GetAudioEncoderConfigurations(soap, trt__GetAudioEncoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfigurations* trt__GetAudioEncoderConfigurations)
{
    struct __trt__GetAudioEncoderConfigurations soap_tmp___trt__GetAudioEncoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations";
    soap_tmp___trt__GetAudioEncoderConfigurations.trt__GetAudioEncoderConfigurations = trt__GetAudioEncoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioEncoderConfigurations(struct soap* soap, struct _trt__GetAudioEncoderConfigurationsResponse* trt__GetAudioEncoderConfigurationsResponse)
{
    if (!trt__GetAudioEncoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioEncoderConfigurationsResponse(soap, trt__GetAudioEncoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioEncoderConfigurationsResponse(soap, trt__GetAudioEncoderConfigurationsResponse, "trt:GetAudioEncoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoAnalyticsConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoAnalyticsConfigurations* trt__GetVideoAnalyticsConfigurations, struct _trt__GetVideoAnalyticsConfigurationsResponse* trt__GetVideoAnalyticsConfigurationsResponse)
{
    if (soap_send___trt__GetVideoAnalyticsConfigurations(soap, soap_endpoint, soap_action, trt__GetVideoAnalyticsConfigurations) || soap_recv___trt__GetVideoAnalyticsConfigurations(soap, trt__GetVideoAnalyticsConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoAnalyticsConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoAnalyticsConfigurations* trt__GetVideoAnalyticsConfigurations)
{
    struct __trt__GetVideoAnalyticsConfigurations soap_tmp___trt__GetVideoAnalyticsConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations";
    soap_tmp___trt__GetVideoAnalyticsConfigurations.trt__GetVideoAnalyticsConfigurations = trt__GetVideoAnalyticsConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoAnalyticsConfigurations(struct soap* soap, struct _trt__GetVideoAnalyticsConfigurationsResponse* trt__GetVideoAnalyticsConfigurationsResponse)
{
    if (!trt__GetVideoAnalyticsConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoAnalyticsConfigurationsResponse(soap, trt__GetVideoAnalyticsConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoAnalyticsConfigurationsResponse(soap, trt__GetVideoAnalyticsConfigurationsResponse, "trt:GetVideoAnalyticsConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetMetadataConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfigurations* trt__GetMetadataConfigurations, struct _trt__GetMetadataConfigurationsResponse* trt__GetMetadataConfigurationsResponse)
{
    if (soap_send___trt__GetMetadataConfigurations(soap, soap_endpoint, soap_action, trt__GetMetadataConfigurations) || soap_recv___trt__GetMetadataConfigurations(soap, trt__GetMetadataConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetMetadataConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfigurations* trt__GetMetadataConfigurations)
{
    struct __trt__GetMetadataConfigurations soap_tmp___trt__GetMetadataConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations";
    soap_tmp___trt__GetMetadataConfigurations.trt__GetMetadataConfigurations = trt__GetMetadataConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetMetadataConfigurations(struct soap* soap, struct _trt__GetMetadataConfigurationsResponse* trt__GetMetadataConfigurationsResponse)
{
    if (!trt__GetMetadataConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetMetadataConfigurationsResponse(soap, trt__GetMetadataConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetMetadataConfigurationsResponse(soap, trt__GetMetadataConfigurationsResponse, "trt:GetMetadataConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioOutputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfigurations* trt__GetAudioOutputConfigurations, struct _trt__GetAudioOutputConfigurationsResponse* trt__GetAudioOutputConfigurationsResponse)
{
    if (soap_send___trt__GetAudioOutputConfigurations(soap, soap_endpoint, soap_action, trt__GetAudioOutputConfigurations) || soap_recv___trt__GetAudioOutputConfigurations(soap, trt__GetAudioOutputConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioOutputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfigurations* trt__GetAudioOutputConfigurations)
{
    struct __trt__GetAudioOutputConfigurations soap_tmp___trt__GetAudioOutputConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations";
    soap_tmp___trt__GetAudioOutputConfigurations.trt__GetAudioOutputConfigurations = trt__GetAudioOutputConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioOutputConfigurations(struct soap* soap, struct _trt__GetAudioOutputConfigurationsResponse* trt__GetAudioOutputConfigurationsResponse)
{
    if (!trt__GetAudioOutputConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioOutputConfigurationsResponse(soap, trt__GetAudioOutputConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioOutputConfigurationsResponse(soap, trt__GetAudioOutputConfigurationsResponse, "trt:GetAudioOutputConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioDecoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfigurations* trt__GetAudioDecoderConfigurations, struct _trt__GetAudioDecoderConfigurationsResponse* trt__GetAudioDecoderConfigurationsResponse)
{
    if (soap_send___trt__GetAudioDecoderConfigurations(soap, soap_endpoint, soap_action, trt__GetAudioDecoderConfigurations) || soap_recv___trt__GetAudioDecoderConfigurations(soap, trt__GetAudioDecoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioDecoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfigurations* trt__GetAudioDecoderConfigurations)
{
    struct __trt__GetAudioDecoderConfigurations soap_tmp___trt__GetAudioDecoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations";
    soap_tmp___trt__GetAudioDecoderConfigurations.trt__GetAudioDecoderConfigurations = trt__GetAudioDecoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioDecoderConfigurations(struct soap* soap, struct _trt__GetAudioDecoderConfigurationsResponse* trt__GetAudioDecoderConfigurationsResponse)
{
    if (!trt__GetAudioDecoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioDecoderConfigurationsResponse(soap, trt__GetAudioDecoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioDecoderConfigurationsResponse(soap, trt__GetAudioDecoderConfigurationsResponse, "trt:GetAudioDecoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfiguration* trt__GetVideoSourceConfiguration, struct _trt__GetVideoSourceConfigurationResponse* trt__GetVideoSourceConfigurationResponse)
{
    if (soap_send___trt__GetVideoSourceConfiguration(soap, soap_endpoint, soap_action, trt__GetVideoSourceConfiguration) || soap_recv___trt__GetVideoSourceConfiguration(soap, trt__GetVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfiguration* trt__GetVideoSourceConfiguration)
{
    struct __trt__GetVideoSourceConfiguration soap_tmp___trt__GetVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration";
    soap_tmp___trt__GetVideoSourceConfiguration.trt__GetVideoSourceConfiguration = trt__GetVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoSourceConfiguration(struct soap* soap, struct _trt__GetVideoSourceConfigurationResponse* trt__GetVideoSourceConfigurationResponse)
{
    if (!trt__GetVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoSourceConfigurationResponse(soap, trt__GetVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoSourceConfigurationResponse(soap, trt__GetVideoSourceConfigurationResponse, "trt:GetVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfiguration* trt__GetVideoEncoderConfiguration, struct _trt__GetVideoEncoderConfigurationResponse* trt__GetVideoEncoderConfigurationResponse)
{
    if (soap_send___trt__GetVideoEncoderConfiguration(soap, soap_endpoint, soap_action, trt__GetVideoEncoderConfiguration) || soap_recv___trt__GetVideoEncoderConfiguration(soap, trt__GetVideoEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfiguration* trt__GetVideoEncoderConfiguration)
{
    struct __trt__GetVideoEncoderConfiguration soap_tmp___trt__GetVideoEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration";
    soap_tmp___trt__GetVideoEncoderConfiguration.trt__GetVideoEncoderConfiguration = trt__GetVideoEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoEncoderConfiguration(struct soap* soap, struct _trt__GetVideoEncoderConfigurationResponse* trt__GetVideoEncoderConfigurationResponse)
{
    if (!trt__GetVideoEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoEncoderConfigurationResponse(soap, trt__GetVideoEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoEncoderConfigurationResponse(soap, trt__GetVideoEncoderConfigurationResponse, "trt:GetVideoEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfiguration* trt__GetAudioSourceConfiguration, struct _trt__GetAudioSourceConfigurationResponse* trt__GetAudioSourceConfigurationResponse)
{
    if (soap_send___trt__GetAudioSourceConfiguration(soap, soap_endpoint, soap_action, trt__GetAudioSourceConfiguration) || soap_recv___trt__GetAudioSourceConfiguration(soap, trt__GetAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfiguration* trt__GetAudioSourceConfiguration)
{
    struct __trt__GetAudioSourceConfiguration soap_tmp___trt__GetAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration";
    soap_tmp___trt__GetAudioSourceConfiguration.trt__GetAudioSourceConfiguration = trt__GetAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioSourceConfiguration(struct soap* soap, struct _trt__GetAudioSourceConfigurationResponse* trt__GetAudioSourceConfigurationResponse)
{
    if (!trt__GetAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioSourceConfigurationResponse(soap, trt__GetAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioSourceConfigurationResponse(soap, trt__GetAudioSourceConfigurationResponse, "trt:GetAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfiguration* trt__GetAudioEncoderConfiguration, struct _trt__GetAudioEncoderConfigurationResponse* trt__GetAudioEncoderConfigurationResponse)
{
    if (soap_send___trt__GetAudioEncoderConfiguration(soap, soap_endpoint, soap_action, trt__GetAudioEncoderConfiguration) || soap_recv___trt__GetAudioEncoderConfiguration(soap, trt__GetAudioEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfiguration* trt__GetAudioEncoderConfiguration)
{
    struct __trt__GetAudioEncoderConfiguration soap_tmp___trt__GetAudioEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration";
    soap_tmp___trt__GetAudioEncoderConfiguration.trt__GetAudioEncoderConfiguration = trt__GetAudioEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioEncoderConfiguration(struct soap* soap, struct _trt__GetAudioEncoderConfigurationResponse* trt__GetAudioEncoderConfigurationResponse)
{
    if (!trt__GetAudioEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioEncoderConfigurationResponse(soap, trt__GetAudioEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioEncoderConfigurationResponse(soap, trt__GetAudioEncoderConfigurationResponse, "trt:GetAudioEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoAnalyticsConfiguration* trt__GetVideoAnalyticsConfiguration, struct _trt__GetVideoAnalyticsConfigurationResponse* trt__GetVideoAnalyticsConfigurationResponse)
{
    if (soap_send___trt__GetVideoAnalyticsConfiguration(soap, soap_endpoint, soap_action, trt__GetVideoAnalyticsConfiguration) || soap_recv___trt__GetVideoAnalyticsConfiguration(soap, trt__GetVideoAnalyticsConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoAnalyticsConfiguration* trt__GetVideoAnalyticsConfiguration)
{
    struct __trt__GetVideoAnalyticsConfiguration soap_tmp___trt__GetVideoAnalyticsConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration";
    soap_tmp___trt__GetVideoAnalyticsConfiguration.trt__GetVideoAnalyticsConfiguration = trt__GetVideoAnalyticsConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoAnalyticsConfiguration(struct soap* soap, struct _trt__GetVideoAnalyticsConfigurationResponse* trt__GetVideoAnalyticsConfigurationResponse)
{
    if (!trt__GetVideoAnalyticsConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoAnalyticsConfigurationResponse(soap, trt__GetVideoAnalyticsConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoAnalyticsConfigurationResponse(soap, trt__GetVideoAnalyticsConfigurationResponse, "trt:GetVideoAnalyticsConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfiguration* trt__GetMetadataConfiguration, struct _trt__GetMetadataConfigurationResponse* trt__GetMetadataConfigurationResponse)
{
    if (soap_send___trt__GetMetadataConfiguration(soap, soap_endpoint, soap_action, trt__GetMetadataConfiguration) || soap_recv___trt__GetMetadataConfiguration(soap, trt__GetMetadataConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfiguration* trt__GetMetadataConfiguration)
{
    struct __trt__GetMetadataConfiguration soap_tmp___trt__GetMetadataConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration";
    soap_tmp___trt__GetMetadataConfiguration.trt__GetMetadataConfiguration = trt__GetMetadataConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetMetadataConfiguration(struct soap* soap, struct _trt__GetMetadataConfigurationResponse* trt__GetMetadataConfigurationResponse)
{
    if (!trt__GetMetadataConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetMetadataConfigurationResponse(soap, trt__GetMetadataConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetMetadataConfigurationResponse(soap, trt__GetMetadataConfigurationResponse, "trt:GetMetadataConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfiguration* trt__GetAudioOutputConfiguration, struct _trt__GetAudioOutputConfigurationResponse* trt__GetAudioOutputConfigurationResponse)
{
    if (soap_send___trt__GetAudioOutputConfiguration(soap, soap_endpoint, soap_action, trt__GetAudioOutputConfiguration) || soap_recv___trt__GetAudioOutputConfiguration(soap, trt__GetAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfiguration* trt__GetAudioOutputConfiguration)
{
    struct __trt__GetAudioOutputConfiguration soap_tmp___trt__GetAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration";
    soap_tmp___trt__GetAudioOutputConfiguration.trt__GetAudioOutputConfiguration = trt__GetAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioOutputConfiguration(struct soap* soap, struct _trt__GetAudioOutputConfigurationResponse* trt__GetAudioOutputConfigurationResponse)
{
    if (!trt__GetAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioOutputConfigurationResponse(soap, trt__GetAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioOutputConfigurationResponse(soap, trt__GetAudioOutputConfigurationResponse, "trt:GetAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfiguration* trt__GetAudioDecoderConfiguration, struct _trt__GetAudioDecoderConfigurationResponse* trt__GetAudioDecoderConfigurationResponse)
{
    if (soap_send___trt__GetAudioDecoderConfiguration(soap, soap_endpoint, soap_action, trt__GetAudioDecoderConfiguration) || soap_recv___trt__GetAudioDecoderConfiguration(soap, trt__GetAudioDecoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfiguration* trt__GetAudioDecoderConfiguration)
{
    struct __trt__GetAudioDecoderConfiguration soap_tmp___trt__GetAudioDecoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration";
    soap_tmp___trt__GetAudioDecoderConfiguration.trt__GetAudioDecoderConfiguration = trt__GetAudioDecoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioDecoderConfiguration(struct soap* soap, struct _trt__GetAudioDecoderConfigurationResponse* trt__GetAudioDecoderConfigurationResponse)
{
    if (!trt__GetAudioDecoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioDecoderConfigurationResponse(soap, trt__GetAudioDecoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioDecoderConfigurationResponse(soap, trt__GetAudioDecoderConfigurationResponse, "trt:GetAudioDecoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleVideoEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoEncoderConfigurations* trt__GetCompatibleVideoEncoderConfigurations, struct _trt__GetCompatibleVideoEncoderConfigurationsResponse* trt__GetCompatibleVideoEncoderConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleVideoEncoderConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleVideoEncoderConfigurations) || soap_recv___trt__GetCompatibleVideoEncoderConfigurations(soap, trt__GetCompatibleVideoEncoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleVideoEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoEncoderConfigurations* trt__GetCompatibleVideoEncoderConfigurations)
{
    struct __trt__GetCompatibleVideoEncoderConfigurations soap_tmp___trt__GetCompatibleVideoEncoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations";
    soap_tmp___trt__GetCompatibleVideoEncoderConfigurations.trt__GetCompatibleVideoEncoderConfigurations = trt__GetCompatibleVideoEncoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleVideoEncoderConfigurations(struct soap* soap, struct _trt__GetCompatibleVideoEncoderConfigurationsResponse* trt__GetCompatibleVideoEncoderConfigurationsResponse)
{
    if (!trt__GetCompatibleVideoEncoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleVideoEncoderConfigurationsResponse(soap, trt__GetCompatibleVideoEncoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleVideoEncoderConfigurationsResponse(soap, trt__GetCompatibleVideoEncoderConfigurationsResponse, "trt:GetCompatibleVideoEncoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleVideoSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoSourceConfigurations* trt__GetCompatibleVideoSourceConfigurations, struct _trt__GetCompatibleVideoSourceConfigurationsResponse* trt__GetCompatibleVideoSourceConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleVideoSourceConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleVideoSourceConfigurations) || soap_recv___trt__GetCompatibleVideoSourceConfigurations(soap, trt__GetCompatibleVideoSourceConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleVideoSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoSourceConfigurations* trt__GetCompatibleVideoSourceConfigurations)
{
    struct __trt__GetCompatibleVideoSourceConfigurations soap_tmp___trt__GetCompatibleVideoSourceConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations";
    soap_tmp___trt__GetCompatibleVideoSourceConfigurations.trt__GetCompatibleVideoSourceConfigurations = trt__GetCompatibleVideoSourceConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleVideoSourceConfigurations(struct soap* soap, struct _trt__GetCompatibleVideoSourceConfigurationsResponse* trt__GetCompatibleVideoSourceConfigurationsResponse)
{
    if (!trt__GetCompatibleVideoSourceConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleVideoSourceConfigurationsResponse(soap, trt__GetCompatibleVideoSourceConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleVideoSourceConfigurationsResponse(soap, trt__GetCompatibleVideoSourceConfigurationsResponse, "trt:GetCompatibleVideoSourceConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleAudioEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioEncoderConfigurations* trt__GetCompatibleAudioEncoderConfigurations, struct _trt__GetCompatibleAudioEncoderConfigurationsResponse* trt__GetCompatibleAudioEncoderConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleAudioEncoderConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleAudioEncoderConfigurations) || soap_recv___trt__GetCompatibleAudioEncoderConfigurations(soap, trt__GetCompatibleAudioEncoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleAudioEncoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioEncoderConfigurations* trt__GetCompatibleAudioEncoderConfigurations)
{
    struct __trt__GetCompatibleAudioEncoderConfigurations soap_tmp___trt__GetCompatibleAudioEncoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations";
    soap_tmp___trt__GetCompatibleAudioEncoderConfigurations.trt__GetCompatibleAudioEncoderConfigurations = trt__GetCompatibleAudioEncoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleAudioEncoderConfigurations(struct soap* soap, struct _trt__GetCompatibleAudioEncoderConfigurationsResponse* trt__GetCompatibleAudioEncoderConfigurationsResponse)
{
    if (!trt__GetCompatibleAudioEncoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleAudioEncoderConfigurationsResponse(soap, trt__GetCompatibleAudioEncoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleAudioEncoderConfigurationsResponse(soap, trt__GetCompatibleAudioEncoderConfigurationsResponse, "trt:GetCompatibleAudioEncoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleAudioSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioSourceConfigurations* trt__GetCompatibleAudioSourceConfigurations, struct _trt__GetCompatibleAudioSourceConfigurationsResponse* trt__GetCompatibleAudioSourceConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleAudioSourceConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleAudioSourceConfigurations) || soap_recv___trt__GetCompatibleAudioSourceConfigurations(soap, trt__GetCompatibleAudioSourceConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleAudioSourceConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioSourceConfigurations* trt__GetCompatibleAudioSourceConfigurations)
{
    struct __trt__GetCompatibleAudioSourceConfigurations soap_tmp___trt__GetCompatibleAudioSourceConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations";
    soap_tmp___trt__GetCompatibleAudioSourceConfigurations.trt__GetCompatibleAudioSourceConfigurations = trt__GetCompatibleAudioSourceConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleAudioSourceConfigurations(struct soap* soap, struct _trt__GetCompatibleAudioSourceConfigurationsResponse* trt__GetCompatibleAudioSourceConfigurationsResponse)
{
    if (!trt__GetCompatibleAudioSourceConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleAudioSourceConfigurationsResponse(soap, trt__GetCompatibleAudioSourceConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleAudioSourceConfigurationsResponse(soap, trt__GetCompatibleAudioSourceConfigurationsResponse, "trt:GetCompatibleAudioSourceConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleVideoAnalyticsConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoAnalyticsConfigurations* trt__GetCompatibleVideoAnalyticsConfigurations, struct _trt__GetCompatibleVideoAnalyticsConfigurationsResponse* trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleVideoAnalyticsConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleVideoAnalyticsConfigurations) || soap_recv___trt__GetCompatibleVideoAnalyticsConfigurations(soap, trt__GetCompatibleVideoAnalyticsConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleVideoAnalyticsConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleVideoAnalyticsConfigurations* trt__GetCompatibleVideoAnalyticsConfigurations)
{
    struct __trt__GetCompatibleVideoAnalyticsConfigurations soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations";
    soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations.trt__GetCompatibleVideoAnalyticsConfigurations = trt__GetCompatibleVideoAnalyticsConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleVideoAnalyticsConfigurations(struct soap* soap, struct _trt__GetCompatibleVideoAnalyticsConfigurationsResponse* trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
{
    if (!trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleVideoAnalyticsConfigurationsResponse(soap, trt__GetCompatibleVideoAnalyticsConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleVideoAnalyticsConfigurationsResponse(soap, trt__GetCompatibleVideoAnalyticsConfigurationsResponse, "trt:GetCompatibleVideoAnalyticsConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleMetadataConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleMetadataConfigurations* trt__GetCompatibleMetadataConfigurations, struct _trt__GetCompatibleMetadataConfigurationsResponse* trt__GetCompatibleMetadataConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleMetadataConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleMetadataConfigurations) || soap_recv___trt__GetCompatibleMetadataConfigurations(soap, trt__GetCompatibleMetadataConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleMetadataConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleMetadataConfigurations* trt__GetCompatibleMetadataConfigurations)
{
    struct __trt__GetCompatibleMetadataConfigurations soap_tmp___trt__GetCompatibleMetadataConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations";
    soap_tmp___trt__GetCompatibleMetadataConfigurations.trt__GetCompatibleMetadataConfigurations = trt__GetCompatibleMetadataConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleMetadataConfigurations(struct soap* soap, struct _trt__GetCompatibleMetadataConfigurationsResponse* trt__GetCompatibleMetadataConfigurationsResponse)
{
    if (!trt__GetCompatibleMetadataConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleMetadataConfigurationsResponse(soap, trt__GetCompatibleMetadataConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleMetadataConfigurationsResponse(soap, trt__GetCompatibleMetadataConfigurationsResponse, "trt:GetCompatibleMetadataConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleAudioOutputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioOutputConfigurations* trt__GetCompatibleAudioOutputConfigurations, struct _trt__GetCompatibleAudioOutputConfigurationsResponse* trt__GetCompatibleAudioOutputConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleAudioOutputConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleAudioOutputConfigurations) || soap_recv___trt__GetCompatibleAudioOutputConfigurations(soap, trt__GetCompatibleAudioOutputConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleAudioOutputConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioOutputConfigurations* trt__GetCompatibleAudioOutputConfigurations)
{
    struct __trt__GetCompatibleAudioOutputConfigurations soap_tmp___trt__GetCompatibleAudioOutputConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations";
    soap_tmp___trt__GetCompatibleAudioOutputConfigurations.trt__GetCompatibleAudioOutputConfigurations = trt__GetCompatibleAudioOutputConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleAudioOutputConfigurations(struct soap* soap, struct _trt__GetCompatibleAudioOutputConfigurationsResponse* trt__GetCompatibleAudioOutputConfigurationsResponse)
{
    if (!trt__GetCompatibleAudioOutputConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleAudioOutputConfigurationsResponse(soap, trt__GetCompatibleAudioOutputConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleAudioOutputConfigurationsResponse(soap, trt__GetCompatibleAudioOutputConfigurationsResponse, "trt:GetCompatibleAudioOutputConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetCompatibleAudioDecoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioDecoderConfigurations* trt__GetCompatibleAudioDecoderConfigurations, struct _trt__GetCompatibleAudioDecoderConfigurationsResponse* trt__GetCompatibleAudioDecoderConfigurationsResponse)
{
    if (soap_send___trt__GetCompatibleAudioDecoderConfigurations(soap, soap_endpoint, soap_action, trt__GetCompatibleAudioDecoderConfigurations) || soap_recv___trt__GetCompatibleAudioDecoderConfigurations(soap, trt__GetCompatibleAudioDecoderConfigurationsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetCompatibleAudioDecoderConfigurations(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetCompatibleAudioDecoderConfigurations* trt__GetCompatibleAudioDecoderConfigurations)
{
    struct __trt__GetCompatibleAudioDecoderConfigurations soap_tmp___trt__GetCompatibleAudioDecoderConfigurations;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations";
    soap_tmp___trt__GetCompatibleAudioDecoderConfigurations.trt__GetCompatibleAudioDecoderConfigurations = trt__GetCompatibleAudioDecoderConfigurations;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetCompatibleAudioDecoderConfigurations(struct soap* soap, struct _trt__GetCompatibleAudioDecoderConfigurationsResponse* trt__GetCompatibleAudioDecoderConfigurationsResponse)
{
    if (!trt__GetCompatibleAudioDecoderConfigurationsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetCompatibleAudioDecoderConfigurationsResponse(soap, trt__GetCompatibleAudioDecoderConfigurationsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetCompatibleAudioDecoderConfigurationsResponse(soap, trt__GetCompatibleAudioDecoderConfigurationsResponse, "trt:GetCompatibleAudioDecoderConfigurationsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoSourceConfiguration* trt__SetVideoSourceConfiguration, struct _trt__SetVideoSourceConfigurationResponse* trt__SetVideoSourceConfigurationResponse)
{
    if (soap_send___trt__SetVideoSourceConfiguration(soap, soap_endpoint, soap_action, trt__SetVideoSourceConfiguration) || soap_recv___trt__SetVideoSourceConfiguration(soap, trt__SetVideoSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetVideoSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoSourceConfiguration* trt__SetVideoSourceConfiguration)
{
    struct __trt__SetVideoSourceConfiguration soap_tmp___trt__SetVideoSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration";
    soap_tmp___trt__SetVideoSourceConfiguration.trt__SetVideoSourceConfiguration = trt__SetVideoSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetVideoSourceConfiguration(struct soap* soap, struct _trt__SetVideoSourceConfigurationResponse* trt__SetVideoSourceConfigurationResponse)
{
    if (!trt__SetVideoSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetVideoSourceConfigurationResponse(soap, trt__SetVideoSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetVideoSourceConfigurationResponse(soap, trt__SetVideoSourceConfigurationResponse, "trt:SetVideoSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoEncoderConfiguration* trt__SetVideoEncoderConfiguration, struct _trt__SetVideoEncoderConfigurationResponse* trt__SetVideoEncoderConfigurationResponse)
{
    if (soap_send___trt__SetVideoEncoderConfiguration(soap, soap_endpoint, soap_action, trt__SetVideoEncoderConfiguration) || soap_recv___trt__SetVideoEncoderConfiguration(soap, trt__SetVideoEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetVideoEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoEncoderConfiguration* trt__SetVideoEncoderConfiguration)
{
    struct __trt__SetVideoEncoderConfiguration soap_tmp___trt__SetVideoEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration";
    soap_tmp___trt__SetVideoEncoderConfiguration.trt__SetVideoEncoderConfiguration = trt__SetVideoEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetVideoEncoderConfiguration(struct soap* soap, struct _trt__SetVideoEncoderConfigurationResponse* trt__SetVideoEncoderConfigurationResponse)
{
    if (!trt__SetVideoEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetVideoEncoderConfigurationResponse(soap, trt__SetVideoEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetVideoEncoderConfigurationResponse(soap, trt__SetVideoEncoderConfigurationResponse, "trt:SetVideoEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioSourceConfiguration* trt__SetAudioSourceConfiguration, struct _trt__SetAudioSourceConfigurationResponse* trt__SetAudioSourceConfigurationResponse)
{
    if (soap_send___trt__SetAudioSourceConfiguration(soap, soap_endpoint, soap_action, trt__SetAudioSourceConfiguration) || soap_recv___trt__SetAudioSourceConfiguration(soap, trt__SetAudioSourceConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetAudioSourceConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioSourceConfiguration* trt__SetAudioSourceConfiguration)
{
    struct __trt__SetAudioSourceConfiguration soap_tmp___trt__SetAudioSourceConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration";
    soap_tmp___trt__SetAudioSourceConfiguration.trt__SetAudioSourceConfiguration = trt__SetAudioSourceConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetAudioSourceConfiguration(struct soap* soap, struct _trt__SetAudioSourceConfigurationResponse* trt__SetAudioSourceConfigurationResponse)
{
    if (!trt__SetAudioSourceConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetAudioSourceConfigurationResponse(soap, trt__SetAudioSourceConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetAudioSourceConfigurationResponse(soap, trt__SetAudioSourceConfigurationResponse, "trt:SetAudioSourceConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioEncoderConfiguration* trt__SetAudioEncoderConfiguration, struct _trt__SetAudioEncoderConfigurationResponse* trt__SetAudioEncoderConfigurationResponse)
{
    if (soap_send___trt__SetAudioEncoderConfiguration(soap, soap_endpoint, soap_action, trt__SetAudioEncoderConfiguration) || soap_recv___trt__SetAudioEncoderConfiguration(soap, trt__SetAudioEncoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetAudioEncoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioEncoderConfiguration* trt__SetAudioEncoderConfiguration)
{
    struct __trt__SetAudioEncoderConfiguration soap_tmp___trt__SetAudioEncoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration";
    soap_tmp___trt__SetAudioEncoderConfiguration.trt__SetAudioEncoderConfiguration = trt__SetAudioEncoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetAudioEncoderConfiguration(struct soap* soap, struct _trt__SetAudioEncoderConfigurationResponse* trt__SetAudioEncoderConfigurationResponse)
{
    if (!trt__SetAudioEncoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetAudioEncoderConfigurationResponse(soap, trt__SetAudioEncoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetAudioEncoderConfigurationResponse(soap, trt__SetAudioEncoderConfigurationResponse, "trt:SetAudioEncoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoAnalyticsConfiguration* trt__SetVideoAnalyticsConfiguration, struct _trt__SetVideoAnalyticsConfigurationResponse* trt__SetVideoAnalyticsConfigurationResponse)
{
    if (soap_send___trt__SetVideoAnalyticsConfiguration(soap, soap_endpoint, soap_action, trt__SetVideoAnalyticsConfiguration) || soap_recv___trt__SetVideoAnalyticsConfiguration(soap, trt__SetVideoAnalyticsConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetVideoAnalyticsConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoAnalyticsConfiguration* trt__SetVideoAnalyticsConfiguration)
{
    struct __trt__SetVideoAnalyticsConfiguration soap_tmp___trt__SetVideoAnalyticsConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration";
    soap_tmp___trt__SetVideoAnalyticsConfiguration.trt__SetVideoAnalyticsConfiguration = trt__SetVideoAnalyticsConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetVideoAnalyticsConfiguration(struct soap* soap, struct _trt__SetVideoAnalyticsConfigurationResponse* trt__SetVideoAnalyticsConfigurationResponse)
{
    if (!trt__SetVideoAnalyticsConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetVideoAnalyticsConfigurationResponse(soap, trt__SetVideoAnalyticsConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetVideoAnalyticsConfigurationResponse(soap, trt__SetVideoAnalyticsConfigurationResponse, "trt:SetVideoAnalyticsConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetMetadataConfiguration* trt__SetMetadataConfiguration, struct _trt__SetMetadataConfigurationResponse* trt__SetMetadataConfigurationResponse)
{
    if (soap_send___trt__SetMetadataConfiguration(soap, soap_endpoint, soap_action, trt__SetMetadataConfiguration) || soap_recv___trt__SetMetadataConfiguration(soap, trt__SetMetadataConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetMetadataConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetMetadataConfiguration* trt__SetMetadataConfiguration)
{
    struct __trt__SetMetadataConfiguration soap_tmp___trt__SetMetadataConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration";
    soap_tmp___trt__SetMetadataConfiguration.trt__SetMetadataConfiguration = trt__SetMetadataConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetMetadataConfiguration(struct soap* soap, struct _trt__SetMetadataConfigurationResponse* trt__SetMetadataConfigurationResponse)
{
    if (!trt__SetMetadataConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetMetadataConfigurationResponse(soap, trt__SetMetadataConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetMetadataConfigurationResponse(soap, trt__SetMetadataConfigurationResponse, "trt:SetMetadataConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioOutputConfiguration* trt__SetAudioOutputConfiguration, struct _trt__SetAudioOutputConfigurationResponse* trt__SetAudioOutputConfigurationResponse)
{
    if (soap_send___trt__SetAudioOutputConfiguration(soap, soap_endpoint, soap_action, trt__SetAudioOutputConfiguration) || soap_recv___trt__SetAudioOutputConfiguration(soap, trt__SetAudioOutputConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetAudioOutputConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioOutputConfiguration* trt__SetAudioOutputConfiguration)
{
    struct __trt__SetAudioOutputConfiguration soap_tmp___trt__SetAudioOutputConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration";
    soap_tmp___trt__SetAudioOutputConfiguration.trt__SetAudioOutputConfiguration = trt__SetAudioOutputConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetAudioOutputConfiguration(struct soap* soap, struct _trt__SetAudioOutputConfigurationResponse* trt__SetAudioOutputConfigurationResponse)
{
    if (!trt__SetAudioOutputConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetAudioOutputConfigurationResponse(soap, trt__SetAudioOutputConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetAudioOutputConfigurationResponse(soap, trt__SetAudioOutputConfigurationResponse, "trt:SetAudioOutputConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioDecoderConfiguration* trt__SetAudioDecoderConfiguration, struct _trt__SetAudioDecoderConfigurationResponse* trt__SetAudioDecoderConfigurationResponse)
{
    if (soap_send___trt__SetAudioDecoderConfiguration(soap, soap_endpoint, soap_action, trt__SetAudioDecoderConfiguration) || soap_recv___trt__SetAudioDecoderConfiguration(soap, trt__SetAudioDecoderConfigurationResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetAudioDecoderConfiguration(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetAudioDecoderConfiguration* trt__SetAudioDecoderConfiguration)
{
    struct __trt__SetAudioDecoderConfiguration soap_tmp___trt__SetAudioDecoderConfiguration;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration";
    soap_tmp___trt__SetAudioDecoderConfiguration.trt__SetAudioDecoderConfiguration = trt__SetAudioDecoderConfiguration;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetAudioDecoderConfiguration(struct soap* soap, struct _trt__SetAudioDecoderConfigurationResponse* trt__SetAudioDecoderConfigurationResponse)
{
    if (!trt__SetAudioDecoderConfigurationResponse)
        return soap_closesock(soap);
    soap_default__trt__SetAudioDecoderConfigurationResponse(soap, trt__SetAudioDecoderConfigurationResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetAudioDecoderConfigurationResponse(soap, trt__SetAudioDecoderConfigurationResponse, "trt:SetAudioDecoderConfigurationResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfigurationOptions* trt__GetVideoSourceConfigurationOptions, struct _trt__GetVideoSourceConfigurationOptionsResponse* trt__GetVideoSourceConfigurationOptionsResponse)
{
    if (soap_send___trt__GetVideoSourceConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetVideoSourceConfigurationOptions) || soap_recv___trt__GetVideoSourceConfigurationOptions(soap, trt__GetVideoSourceConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceConfigurationOptions* trt__GetVideoSourceConfigurationOptions)
{
    struct __trt__GetVideoSourceConfigurationOptions soap_tmp___trt__GetVideoSourceConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSourceConfigurationOptions/";
    soap_tmp___trt__GetVideoSourceConfigurationOptions.trt__GetVideoSourceConfigurationOptions = trt__GetVideoSourceConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoSourceConfigurationOptions(struct soap* soap, struct _trt__GetVideoSourceConfigurationOptionsResponse* trt__GetVideoSourceConfigurationOptionsResponse)
{
    if (!trt__GetVideoSourceConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoSourceConfigurationOptionsResponse(soap, trt__GetVideoSourceConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoSourceConfigurationOptionsResponse(soap, trt__GetVideoSourceConfigurationOptionsResponse, "trt:GetVideoSourceConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoEncoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfigurationOptions* trt__GetVideoEncoderConfigurationOptions, struct _trt__GetVideoEncoderConfigurationOptionsResponse* trt__GetVideoEncoderConfigurationOptionsResponse)
{
    if (soap_send___trt__GetVideoEncoderConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetVideoEncoderConfigurationOptions) || soap_recv___trt__GetVideoEncoderConfigurationOptions(soap, trt__GetVideoEncoderConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoEncoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoEncoderConfigurationOptions* trt__GetVideoEncoderConfigurationOptions)
{
    struct __trt__GetVideoEncoderConfigurationOptions soap_tmp___trt__GetVideoEncoderConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions";
    soap_tmp___trt__GetVideoEncoderConfigurationOptions.trt__GetVideoEncoderConfigurationOptions = trt__GetVideoEncoderConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoEncoderConfigurationOptions(struct soap* soap, struct _trt__GetVideoEncoderConfigurationOptionsResponse* trt__GetVideoEncoderConfigurationOptionsResponse)
{
    if (!trt__GetVideoEncoderConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoEncoderConfigurationOptionsResponse(soap, trt__GetVideoEncoderConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoEncoderConfigurationOptionsResponse(soap, trt__GetVideoEncoderConfigurationOptionsResponse, "trt:GetVideoEncoderConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfigurationOptions* trt__GetAudioSourceConfigurationOptions, struct _trt__GetAudioSourceConfigurationOptionsResponse* trt__GetAudioSourceConfigurationOptionsResponse)
{
    if (soap_send___trt__GetAudioSourceConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetAudioSourceConfigurationOptions) || soap_recv___trt__GetAudioSourceConfigurationOptions(soap, trt__GetAudioSourceConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioSourceConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioSourceConfigurationOptions* trt__GetAudioSourceConfigurationOptions)
{
    struct __trt__GetAudioSourceConfigurationOptions soap_tmp___trt__GetAudioSourceConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions";
    soap_tmp___trt__GetAudioSourceConfigurationOptions.trt__GetAudioSourceConfigurationOptions = trt__GetAudioSourceConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioSourceConfigurationOptions(struct soap* soap, struct _trt__GetAudioSourceConfigurationOptionsResponse* trt__GetAudioSourceConfigurationOptionsResponse)
{
    if (!trt__GetAudioSourceConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioSourceConfigurationOptionsResponse(soap, trt__GetAudioSourceConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioSourceConfigurationOptionsResponse(soap, trt__GetAudioSourceConfigurationOptionsResponse, "trt:GetAudioSourceConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioEncoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfigurationOptions* trt__GetAudioEncoderConfigurationOptions, struct _trt__GetAudioEncoderConfigurationOptionsResponse* trt__GetAudioEncoderConfigurationOptionsResponse)
{
    if (soap_send___trt__GetAudioEncoderConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetAudioEncoderConfigurationOptions) || soap_recv___trt__GetAudioEncoderConfigurationOptions(soap, trt__GetAudioEncoderConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioEncoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioEncoderConfigurationOptions* trt__GetAudioEncoderConfigurationOptions)
{
    struct __trt__GetAudioEncoderConfigurationOptions soap_tmp___trt__GetAudioEncoderConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions";
    soap_tmp___trt__GetAudioEncoderConfigurationOptions.trt__GetAudioEncoderConfigurationOptions = trt__GetAudioEncoderConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioEncoderConfigurationOptions(struct soap* soap, struct _trt__GetAudioEncoderConfigurationOptionsResponse* trt__GetAudioEncoderConfigurationOptionsResponse)
{
    if (!trt__GetAudioEncoderConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioEncoderConfigurationOptionsResponse(soap, trt__GetAudioEncoderConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioEncoderConfigurationOptionsResponse(soap, trt__GetAudioEncoderConfigurationOptionsResponse, "trt:GetAudioEncoderConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetMetadataConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfigurationOptions* trt__GetMetadataConfigurationOptions, struct _trt__GetMetadataConfigurationOptionsResponse* trt__GetMetadataConfigurationOptionsResponse)
{
    if (soap_send___trt__GetMetadataConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetMetadataConfigurationOptions) || soap_recv___trt__GetMetadataConfigurationOptions(soap, trt__GetMetadataConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetMetadataConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetMetadataConfigurationOptions* trt__GetMetadataConfigurationOptions)
{
    struct __trt__GetMetadataConfigurationOptions soap_tmp___trt__GetMetadataConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions";
    soap_tmp___trt__GetMetadataConfigurationOptions.trt__GetMetadataConfigurationOptions = trt__GetMetadataConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetMetadataConfigurationOptions(struct soap* soap, struct _trt__GetMetadataConfigurationOptionsResponse* trt__GetMetadataConfigurationOptionsResponse)
{
    if (!trt__GetMetadataConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetMetadataConfigurationOptionsResponse(soap, trt__GetMetadataConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetMetadataConfigurationOptionsResponse(soap, trt__GetMetadataConfigurationOptionsResponse, "trt:GetMetadataConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfigurationOptions* trt__GetAudioOutputConfigurationOptions, struct _trt__GetAudioOutputConfigurationOptionsResponse* trt__GetAudioOutputConfigurationOptionsResponse)
{
    if (soap_send___trt__GetAudioOutputConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetAudioOutputConfigurationOptions) || soap_recv___trt__GetAudioOutputConfigurationOptions(soap, trt__GetAudioOutputConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioOutputConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioOutputConfigurationOptions* trt__GetAudioOutputConfigurationOptions)
{
    struct __trt__GetAudioOutputConfigurationOptions soap_tmp___trt__GetAudioOutputConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions";
    soap_tmp___trt__GetAudioOutputConfigurationOptions.trt__GetAudioOutputConfigurationOptions = trt__GetAudioOutputConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioOutputConfigurationOptions(struct soap* soap, struct _trt__GetAudioOutputConfigurationOptionsResponse* trt__GetAudioOutputConfigurationOptionsResponse)
{
    if (!trt__GetAudioOutputConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioOutputConfigurationOptionsResponse(soap, trt__GetAudioOutputConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioOutputConfigurationOptionsResponse(soap, trt__GetAudioOutputConfigurationOptionsResponse, "trt:GetAudioOutputConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetAudioDecoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfigurationOptions* trt__GetAudioDecoderConfigurationOptions, struct _trt__GetAudioDecoderConfigurationOptionsResponse* trt__GetAudioDecoderConfigurationOptionsResponse)
{
    if (soap_send___trt__GetAudioDecoderConfigurationOptions(soap, soap_endpoint, soap_action, trt__GetAudioDecoderConfigurationOptions) || soap_recv___trt__GetAudioDecoderConfigurationOptions(soap, trt__GetAudioDecoderConfigurationOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetAudioDecoderConfigurationOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetAudioDecoderConfigurationOptions* trt__GetAudioDecoderConfigurationOptions)
{
    struct __trt__GetAudioDecoderConfigurationOptions soap_tmp___trt__GetAudioDecoderConfigurationOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions";
    soap_tmp___trt__GetAudioDecoderConfigurationOptions.trt__GetAudioDecoderConfigurationOptions = trt__GetAudioDecoderConfigurationOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetAudioDecoderConfigurationOptions(struct soap* soap, struct _trt__GetAudioDecoderConfigurationOptionsResponse* trt__GetAudioDecoderConfigurationOptionsResponse)
{
    if (!trt__GetAudioDecoderConfigurationOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetAudioDecoderConfigurationOptionsResponse(soap, trt__GetAudioDecoderConfigurationOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetAudioDecoderConfigurationOptionsResponse(soap, trt__GetAudioDecoderConfigurationOptionsResponse, "trt:GetAudioDecoderConfigurationOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetGuaranteedNumberOfVideoEncoderInstances(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetGuaranteedNumberOfVideoEncoderInstances* trt__GetGuaranteedNumberOfVideoEncoderInstances, struct _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse* trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
{
    if (soap_send___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, soap_endpoint, soap_action, trt__GetGuaranteedNumberOfVideoEncoderInstances) || soap_recv___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetGuaranteedNumberOfVideoEncoderInstances(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetGuaranteedNumberOfVideoEncoderInstances* trt__GetGuaranteedNumberOfVideoEncoderInstances)
{
    struct __trt__GetGuaranteedNumberOfVideoEncoderInstances soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances";
    soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances.trt__GetGuaranteedNumberOfVideoEncoderInstances = trt__GetGuaranteedNumberOfVideoEncoderInstances;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetGuaranteedNumberOfVideoEncoderInstances(struct soap* soap, struct _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse* trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
{
    if (!trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse(soap, trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse(soap, trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse, "trt:GetGuaranteedNumberOfVideoEncoderInstancesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetStreamUri(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetStreamUri* trt__GetStreamUri, struct _trt__GetStreamUriResponse* trt__GetStreamUriResponse)
{
    if (soap_send___trt__GetStreamUri(soap, soap_endpoint, soap_action, trt__GetStreamUri) || soap_recv___trt__GetStreamUri(soap, trt__GetStreamUriResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetStreamUri(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetStreamUri* trt__GetStreamUri)
{
    struct __trt__GetStreamUri soap_tmp___trt__GetStreamUri;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetStreamUri";
    soap_tmp___trt__GetStreamUri.trt__GetStreamUri = trt__GetStreamUri;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetStreamUri(struct soap* soap, struct _trt__GetStreamUriResponse* trt__GetStreamUriResponse)
{
    if (!trt__GetStreamUriResponse)
        return soap_closesock(soap);
    soap_default__trt__GetStreamUriResponse(soap, trt__GetStreamUriResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetStreamUriResponse(soap, trt__GetStreamUriResponse, "trt:GetStreamUriResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__StartMulticastStreaming(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__StartMulticastStreaming* trt__StartMulticastStreaming, struct _trt__StartMulticastStreamingResponse* trt__StartMulticastStreamingResponse)
{
    if (soap_send___trt__StartMulticastStreaming(soap, soap_endpoint, soap_action, trt__StartMulticastStreaming) || soap_recv___trt__StartMulticastStreaming(soap, trt__StartMulticastStreamingResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__StartMulticastStreaming(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__StartMulticastStreaming* trt__StartMulticastStreaming)
{
    struct __trt__StartMulticastStreaming soap_tmp___trt__StartMulticastStreaming;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming";
    soap_tmp___trt__StartMulticastStreaming.trt__StartMulticastStreaming = trt__StartMulticastStreaming;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__StartMulticastStreaming(struct soap* soap, struct _trt__StartMulticastStreamingResponse* trt__StartMulticastStreamingResponse)
{
    if (!trt__StartMulticastStreamingResponse)
        return soap_closesock(soap);
    soap_default__trt__StartMulticastStreamingResponse(soap, trt__StartMulticastStreamingResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__StartMulticastStreamingResponse(soap, trt__StartMulticastStreamingResponse, "trt:StartMulticastStreamingResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__StopMulticastStreaming(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__StopMulticastStreaming* trt__StopMulticastStreaming, struct _trt__StopMulticastStreamingResponse* trt__StopMulticastStreamingResponse)
{
    if (soap_send___trt__StopMulticastStreaming(soap, soap_endpoint, soap_action, trt__StopMulticastStreaming) || soap_recv___trt__StopMulticastStreaming(soap, trt__StopMulticastStreamingResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__StopMulticastStreaming(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__StopMulticastStreaming* trt__StopMulticastStreaming)
{
    struct __trt__StopMulticastStreaming soap_tmp___trt__StopMulticastStreaming;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming";
    soap_tmp___trt__StopMulticastStreaming.trt__StopMulticastStreaming = trt__StopMulticastStreaming;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__StopMulticastStreaming(struct soap* soap, struct _trt__StopMulticastStreamingResponse* trt__StopMulticastStreamingResponse)
{
    if (!trt__StopMulticastStreamingResponse)
        return soap_closesock(soap);
    soap_default__trt__StopMulticastStreamingResponse(soap, trt__StopMulticastStreamingResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__StopMulticastStreamingResponse(soap, trt__StopMulticastStreamingResponse, "trt:StopMulticastStreamingResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetSynchronizationPoint(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetSynchronizationPoint* trt__SetSynchronizationPoint, struct _trt__SetSynchronizationPointResponse* trt__SetSynchronizationPointResponse)
{
    if (soap_send___trt__SetSynchronizationPoint(soap, soap_endpoint, soap_action, trt__SetSynchronizationPoint) || soap_recv___trt__SetSynchronizationPoint(soap, trt__SetSynchronizationPointResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetSynchronizationPoint(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetSynchronizationPoint* trt__SetSynchronizationPoint)
{
    struct __trt__SetSynchronizationPoint soap_tmp___trt__SetSynchronizationPoint;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint";
    soap_tmp___trt__SetSynchronizationPoint.trt__SetSynchronizationPoint = trt__SetSynchronizationPoint;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetSynchronizationPoint(struct soap* soap, struct _trt__SetSynchronizationPointResponse* trt__SetSynchronizationPointResponse)
{
    if (!trt__SetSynchronizationPointResponse)
        return soap_closesock(soap);
    soap_default__trt__SetSynchronizationPointResponse(soap, trt__SetSynchronizationPointResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetSynchronizationPointResponse(soap, trt__SetSynchronizationPointResponse, "trt:SetSynchronizationPointResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetSnapshotUri(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetSnapshotUri* trt__GetSnapshotUri, struct _trt__GetSnapshotUriResponse* trt__GetSnapshotUriResponse)
{
    if (soap_send___trt__GetSnapshotUri(soap, soap_endpoint, soap_action, trt__GetSnapshotUri) || soap_recv___trt__GetSnapshotUri(soap, trt__GetSnapshotUriResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetSnapshotUri(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetSnapshotUri* trt__GetSnapshotUri)
{
    struct __trt__GetSnapshotUri soap_tmp___trt__GetSnapshotUri;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri";
    soap_tmp___trt__GetSnapshotUri.trt__GetSnapshotUri = trt__GetSnapshotUri;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetSnapshotUri(struct soap* soap, struct _trt__GetSnapshotUriResponse* trt__GetSnapshotUriResponse)
{
    if (!trt__GetSnapshotUriResponse)
        return soap_closesock(soap);
    soap_default__trt__GetSnapshotUriResponse(soap, trt__GetSnapshotUriResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetSnapshotUriResponse(soap, trt__GetSnapshotUriResponse, "trt:GetSnapshotUriResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetVideoSourceModes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceModes* trt__GetVideoSourceModes, struct _trt__GetVideoSourceModesResponse* trt__GetVideoSourceModesResponse)
{
    if (soap_send___trt__GetVideoSourceModes(soap, soap_endpoint, soap_action, trt__GetVideoSourceModes) || soap_recv___trt__GetVideoSourceModes(soap, trt__GetVideoSourceModesResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetVideoSourceModes(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetVideoSourceModes* trt__GetVideoSourceModes)
{
    struct __trt__GetVideoSourceModes soap_tmp___trt__GetVideoSourceModes;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes";
    soap_tmp___trt__GetVideoSourceModes.trt__GetVideoSourceModes = trt__GetVideoSourceModes;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetVideoSourceModes(struct soap* soap, struct _trt__GetVideoSourceModesResponse* trt__GetVideoSourceModesResponse)
{
    if (!trt__GetVideoSourceModesResponse)
        return soap_closesock(soap);
    soap_default__trt__GetVideoSourceModesResponse(soap, trt__GetVideoSourceModesResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetVideoSourceModesResponse(soap, trt__GetVideoSourceModesResponse, "trt:GetVideoSourceModesResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetVideoSourceMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoSourceMode* trt__SetVideoSourceMode, struct _trt__SetVideoSourceModeResponse* trt__SetVideoSourceModeResponse)
{
    if (soap_send___trt__SetVideoSourceMode(soap, soap_endpoint, soap_action, trt__SetVideoSourceMode) || soap_recv___trt__SetVideoSourceMode(soap, trt__SetVideoSourceModeResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetVideoSourceMode(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetVideoSourceMode* trt__SetVideoSourceMode)
{
    struct __trt__SetVideoSourceMode soap_tmp___trt__SetVideoSourceMode;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode";
    soap_tmp___trt__SetVideoSourceMode.trt__SetVideoSourceMode = trt__SetVideoSourceMode;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetVideoSourceMode(struct soap* soap, struct _trt__SetVideoSourceModeResponse* trt__SetVideoSourceModeResponse)
{
    if (!trt__SetVideoSourceModeResponse)
        return soap_closesock(soap);
    soap_default__trt__SetVideoSourceModeResponse(soap, trt__SetVideoSourceModeResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetVideoSourceModeResponse(soap, trt__SetVideoSourceModeResponse, "trt:SetVideoSourceModeResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetOSDs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSDs* trt__GetOSDs, struct _trt__GetOSDsResponse* trt__GetOSDsResponse)
{
    if (soap_send___trt__GetOSDs(soap, soap_endpoint, soap_action, trt__GetOSDs) || soap_recv___trt__GetOSDs(soap, trt__GetOSDsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetOSDs(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSDs* trt__GetOSDs)
{
    struct __trt__GetOSDs soap_tmp___trt__GetOSDs;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDs";
    soap_tmp___trt__GetOSDs.trt__GetOSDs = trt__GetOSDs;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetOSDs(struct soap* soap, struct _trt__GetOSDsResponse* trt__GetOSDsResponse)
{
    if (!trt__GetOSDsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetOSDsResponse(soap, trt__GetOSDsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetOSDsResponse(soap, trt__GetOSDsResponse, "trt:GetOSDsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSD* trt__GetOSD, struct _trt__GetOSDResponse* trt__GetOSDResponse)
{
    if (soap_send___trt__GetOSD(soap, soap_endpoint, soap_action, trt__GetOSD) || soap_recv___trt__GetOSD(soap, trt__GetOSDResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSD* trt__GetOSD)
{
    struct __trt__GetOSD soap_tmp___trt__GetOSD;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSD";
    soap_tmp___trt__GetOSD.trt__GetOSD = trt__GetOSD;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetOSD(soap, &soap_tmp___trt__GetOSD);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetOSD(struct soap* soap, struct _trt__GetOSDResponse* trt__GetOSDResponse)
{
    if (!trt__GetOSDResponse)
        return soap_closesock(soap);
    soap_default__trt__GetOSDResponse(soap, trt__GetOSDResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetOSDResponse(soap, trt__GetOSDResponse, "trt:GetOSDResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__GetOSDOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSDOptions* trt__GetOSDOptions, struct _trt__GetOSDOptionsResponse* trt__GetOSDOptionsResponse)
{
    if (soap_send___trt__GetOSDOptions(soap, soap_endpoint, soap_action, trt__GetOSDOptions) || soap_recv___trt__GetOSDOptions(soap, trt__GetOSDOptionsResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__GetOSDOptions(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__GetOSDOptions* trt__GetOSDOptions)
{
    struct __trt__GetOSDOptions soap_tmp___trt__GetOSDOptions;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions";
    soap_tmp___trt__GetOSDOptions.trt__GetOSDOptions = trt__GetOSDOptions;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__GetOSDOptions(struct soap* soap, struct _trt__GetOSDOptionsResponse* trt__GetOSDOptionsResponse)
{
    if (!trt__GetOSDOptionsResponse)
        return soap_closesock(soap);
    soap_default__trt__GetOSDOptionsResponse(soap, trt__GetOSDOptionsResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__GetOSDOptionsResponse(soap, trt__GetOSDOptionsResponse, "trt:GetOSDOptionsResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__SetOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetOSD* trt__SetOSD, struct _trt__SetOSDResponse* trt__SetOSDResponse)
{
    if (soap_send___trt__SetOSD(soap, soap_endpoint, soap_action, trt__SetOSD) || soap_recv___trt__SetOSD(soap, trt__SetOSDResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__SetOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__SetOSD* trt__SetOSD)
{
    struct __trt__SetOSD soap_tmp___trt__SetOSD;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/SetOSD";
    soap_tmp___trt__SetOSD.trt__SetOSD = trt__SetOSD;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__SetOSD(soap, &soap_tmp___trt__SetOSD);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__SetOSD(struct soap* soap, struct _trt__SetOSDResponse* trt__SetOSDResponse)
{
    if (!trt__SetOSDResponse)
        return soap_closesock(soap);
    soap_default__trt__SetOSDResponse(soap, trt__SetOSDResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__SetOSDResponse(soap, trt__SetOSDResponse, "trt:SetOSDResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__CreateOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__CreateOSD* trt__CreateOSD, struct _trt__CreateOSDResponse* trt__CreateOSDResponse)
{
    if (soap_send___trt__CreateOSD(soap, soap_endpoint, soap_action, trt__CreateOSD) || soap_recv___trt__CreateOSD(soap, trt__CreateOSDResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__CreateOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__CreateOSD* trt__CreateOSD)
{
    struct __trt__CreateOSD soap_tmp___trt__CreateOSD;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateOSD";
    soap_tmp___trt__CreateOSD.trt__CreateOSD = trt__CreateOSD;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__CreateOSD(struct soap* soap, struct _trt__CreateOSDResponse* trt__CreateOSDResponse)
{
    if (!trt__CreateOSDResponse)
        return soap_closesock(soap);
    soap_default__trt__CreateOSDResponse(soap, trt__CreateOSDResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__CreateOSDResponse(soap, trt__CreateOSDResponse, "trt:CreateOSDResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

SOAP_FMAC5 int SOAP_FMAC6 soap_call___trt__DeleteOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__DeleteOSD* trt__DeleteOSD, struct _trt__DeleteOSDResponse* trt__DeleteOSDResponse)
{
    if (soap_send___trt__DeleteOSD(soap, soap_endpoint, soap_action, trt__DeleteOSD) || soap_recv___trt__DeleteOSD(soap, trt__DeleteOSDResponse))
        return soap->error;
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_send___trt__DeleteOSD(struct soap* soap, const char* soap_endpoint, const char* soap_action, struct _trt__DeleteOSD* trt__DeleteOSD)
{
    struct __trt__DeleteOSD soap_tmp___trt__DeleteOSD;
    if (soap_action == NULL)
        soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteOSD";
    soap_tmp___trt__DeleteOSD.trt__DeleteOSD = trt__DeleteOSD;
    soap_begin(soap);
    soap_set_version(soap, 2); 
    soap->encodingStyle = NULL; 
    soap_serializeheader(soap);
    soap_serialize___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD);
    if (soap_begin_count(soap))
        return soap->error;
    if ((soap->mode & SOAP_IO_LENGTH))
    {
        if (soap_envelope_begin_out(soap)
                || soap_putheader(soap)
                || soap_body_begin_out(soap)
                || soap_put___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", "")
                || soap_body_end_out(soap)
                || soap_envelope_end_out(soap))
            return soap->error;
    }
    if (soap_end_count(soap))
        return soap->error;
    if (soap_connect(soap, soap_endpoint, soap_action)
            || soap_envelope_begin_out(soap)
            || soap_putheader(soap)
            || soap_body_begin_out(soap)
            || soap_put___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    return SOAP_OK;
}

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___trt__DeleteOSD(struct soap* soap, struct _trt__DeleteOSDResponse* trt__DeleteOSDResponse)
{
    if (!trt__DeleteOSDResponse)
        return soap_closesock(soap);
    soap_default__trt__DeleteOSDResponse(soap, trt__DeleteOSDResponse);
    if (soap_begin_recv(soap)
            || soap_envelope_begin_in(soap)
            || soap_recv_header(soap)
            || soap_body_begin_in(soap))
        return soap_closesock(soap);
    soap_get__trt__DeleteOSDResponse(soap, trt__DeleteOSDResponse, "trt:DeleteOSDResponse", NULL);
    if (soap->error)
        return soap_recv_fault(soap, 0);
    if (soap_body_end_in(soap)
            || soap_envelope_end_in(soap)
            || soap_end_recv(soap))
        return soap_closesock(soap);
    return soap_closesock(soap);
}

#ifdef __cplusplus
}
#endif

#if defined(__BORLANDC__)
    #pragma option pop
    #pragma option pop
#endif

